Changeset 93b84b3 in mainline for generic/src/console/kconsole.c


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

Fixed weird simics panic.
Run kconsole, if we panic. This currently works in gxemul,
simics. In mips we need to modify the simulator.
On ia32 we need a function, that would speak directly to the chip
and fetch the character using polling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/console/kconsole.c

    raf9a7c5 r93b84b3  
    248248                        putchar(c);
    249249                        break;
    250                 } if (c == '\b') {
     250                } if (c == '\b') { /* Backspace */
    251251                        if (position == 0)
    252252                                continue;
     
    262262                        continue;
    263263                }
    264                 if (c == '\t') {
     264                if (c == '\t') { /* Tabulator */
    265265                        int found;
    266266
     
    310310                        continue;
    311311                }
    312                 if (c == 0x1b) {
     312                if (c == 0x1b) { /* Special command */
    313313                        mod = _getc(input);
    314314                        c = _getc(input);
     
    318318
    319319                        if (c == 0x33 && _getc(input) == 0x7e) {
     320                                /* Delete */
    320321                                if (position == curlen)
    321322                                        continue;
     
    332333                                position = 0;
    333334                        }
    334                         else if (c == 0x46) {
     335                        else if (c == 0x46) {  /* End */
    335336                                for (i=position;i<curlen;i++)
    336337                                        putchar(current[i]);
     
    356357                                rdln_print_c(' ',curlen);
    357358                                rdln_print_c('\b',curlen);
    358                                 if (c == 0x41)
     359                                if (c == 0x41) /* Up */
    359360                                        histposition--;
    360361                                else
Note: See TracChangeset for help on using the changeset viewer.