Changeset e8a9dc3 in mainline for arch/mips32/src/drivers/msim.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/mips32/src/drivers/msim.c

    rf7f6f25 re8a9dc3  
    6262}
    6363
     64#include <print.h>
    6465/** Process keyboard interrupt. */
    6566static void msim_interrupt(int n, void *stack)
     
    7071        if (ch =='\r')
    7172                ch = '\n';
     73        if (ch == 0x7f)
     74                ch = '\b';
    7275        chardev_push_character(&console, ch);
    7376}
Note: See TracChangeset for help on using the changeset viewer.