Subversion Repositories HelenOS-historic

Rev

Rev 575 | Rev 623 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 575 Rev 588
Line 97... Line 97...
97
 
97
 
98
    ipl = interrupts_disable();
98
    ipl = interrupts_disable();
99
    spinlock_lock(&egalock);
99
    spinlock_lock(&egalock);
100
 
100
 
101
    switch (ch) {
101
    switch (ch) {
102
        case '\n':
102
    case '\n':
103
        ega_cursor = (ega_cursor + ROW) - ega_cursor % ROW;
103
        ega_cursor = (ega_cursor + ROW) - ega_cursor % ROW;
104
        break;
104
        break;
105
        case '\t':
105
    case '\t':
106
        ega_cursor = (ega_cursor + 8) - ega_cursor % 8;
106
        ega_cursor = (ega_cursor + 8) - ega_cursor % 8;
107
        break;
107
        break;
-
 
108
    case '\b':
-
 
109
        if (ega_cursor % ROW)
-
 
110
            ega_cursor--;
-
 
111
        break;
108
        default:
112
    default:
109
        ega_display_char(ch);
113
        ega_display_char(ch);
110
        ega_cursor++;
114
        ega_cursor++;
111
        break;
115
        break;
112
        }
116
        }
113
    ega_check_cursor();
117
    ega_check_cursor();