Changeset e8a9dc3 in mainline for arch/ia32/src/drivers/ega.c


Ignore:
Timestamp:
2005-12-10T16:37:20Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e5fcf00
Parents:
f7f6f25
Message:

Added support for backspace

  • printing '\b' should move the cursor one char to the left
  • backspace key should return '\b' to application
File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/ia32/src/drivers/ega.c

    rf7f6f25 re8a9dc3  
    100100
    101101        switch (ch) {
    102             case '\n':
     102        case '\n':
    103103                ega_cursor = (ega_cursor + ROW) - ega_cursor % ROW;
    104104                break;
    105             case '\t':
     105        case '\t':
    106106                ega_cursor = (ega_cursor + 8) - ega_cursor % 8;
    107107                break;
    108             default:
     108        case '\b':
     109                if (ega_cursor % ROW)
     110                        ega_cursor--;
     111                break;
     112        default:
    109113                ega_display_char(ch);
    110114                ega_cursor++;
Note: See TracChangeset for help on using the changeset viewer.