Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 84c86819 in mainline


Ignore:
Timestamp:
2012-05-12T10:48:40Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
26b6789, 4b82445, 68f57e1, 6df2202, f2eece1
Parents:
0d67e16
Message:

Transmit ASCII BS for backspace. Display entire received buffer in one go, to lessen chance of clobbering multibyte characters.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/nterm/nterm.c

    r0d67e16 r84c86819  
    7979                break;
    8080        default:
    81                 if (ev->c >= 32 || ev->c == '\t') {
     81                if (ev->c >= 32 || ev->c == '\t' || ev->c == '\b') {
    8282                        send_char(ev->c);
    8383                }
     
    9898void nterm_received(void *data, size_t size)
    9999{
    100         uint8_t *dp = (uint8_t *)data;
    101         size_t i;
    102 
    103 //      printf("Received %zu bytes.\n", size);
    104         for (i = 0; i < size; i++) {
    105 //              printf("0x%02x\n", dp[i]);
    106                 putchar(dp[i]);
    107         }
    108 
     100        fwrite(data, size, 1, stdout);
    109101        fflush(stdout);
    110102}
Note: See TracChangeset for help on using the changeset viewer.