Changeset 93b84b3 in mainline for generic/src/console/kconsole.c
- Timestamp:
- 2005-12-12T16:30:07Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ebbdb8f
- Parents:
- af9a7c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/console/kconsole.c
raf9a7c5 r93b84b3 248 248 putchar(c); 249 249 break; 250 } if (c == '\b') { 250 } if (c == '\b') { /* Backspace */ 251 251 if (position == 0) 252 252 continue; … … 262 262 continue; 263 263 } 264 if (c == '\t') { 264 if (c == '\t') { /* Tabulator */ 265 265 int found; 266 266 … … 310 310 continue; 311 311 } 312 if (c == 0x1b) { 312 if (c == 0x1b) { /* Special command */ 313 313 mod = _getc(input); 314 314 c = _getc(input); … … 318 318 319 319 if (c == 0x33 && _getc(input) == 0x7e) { 320 /* Delete */ 320 321 if (position == curlen) 321 322 continue; … … 332 333 position = 0; 333 334 } 334 else if (c == 0x46) { 335 else if (c == 0x46) { /* End */ 335 336 for (i=position;i<curlen;i++) 336 337 putchar(current[i]); … … 356 357 rdln_print_c(' ',curlen); 357 358 rdln_print_c('\b',curlen); 358 if (c == 0x41) 359 if (c == 0x41) /* Up */ 359 360 histposition--; 360 361 else
Note:
See TracChangeset
for help on using the changeset viewer.