Subversion Repositories HelenOS

Rev

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

Rev 3582 Rev 3607
Line 133... Line 133...
133
    while (*in_rdptr_ptr != *in_wrptr_ptr) {
133
    while (*in_rdptr_ptr != *in_wrptr_ptr) {
134
        c = *buf_ptr;
134
        c = *buf_ptr;
135
        *in_rdptr_ptr = (((*in_rdptr_ptr) - begin + 1) % size) + begin;
135
        *in_rdptr_ptr = (((*in_rdptr_ptr) - begin + 1) % size) + begin;
136
        buf_ptr = (volatile char *)
136
        buf_ptr = (volatile char *)
137
            SGCN_BUFFER(char, SGCN_BUFFER_HEADER->in_rdptr);
137
            SGCN_BUFFER(char, SGCN_BUFFER_HEADER->in_rdptr);
138
        printf("Pressed character %c.\n", c);
-
 
139
        if (c == '\r') {
138
        if (c == '\r') {
140
                        c = '\n';
139
                        c = '\n';
141
                }
140
                }
142
        kbd_process_no_fb(&keybuffer, c);
141
        kbd_process_no_fb(&keybuffer, c);
143
    }
142
    }