1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

The following patch will remove a hack introduced in

/sys/ddb/db_input.c rev 1.19 to recognize syscons's cursor keycodes.
It is unnecessary now that scgetc() in syscons returns the escape
sequence for the cursor keys rather than their raw, internal key
codes.
This commit is contained in:
Kazutaka YOKOTA 1999-07-14 10:53:41 +00:00
parent cb435fa919
commit de22efc974
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48810

View File

@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
* $Id: db_input.c,v 1.22 1997/11/20 16:53:23 bde Exp $
* $Id: db_input.c,v 1.23 1997/12/05 05:36:58 dyson Exp $
*/
/*
@ -157,9 +157,6 @@ db_inputchar(c)
case CTRL('['):
escstate = 1;
break;
#if __i386__ && __FreeBSD__
case 591: /* syscons's idea of left arrow key */
#endif
case CTRL('b'):
/* back up one character */
if (db_lc > db_lbuf_start) {
@ -167,9 +164,6 @@ db_inputchar(c)
db_lc--;
}
break;
#if __i386__ && __FreeBSD__
case 593: /* syscons's idea of right arrow key */
#endif
case CTRL('f'):
/* forward one character */
if (db_lc < db_le) {
@ -227,9 +221,6 @@ db_inputchar(c)
db_putnchars(BACKUP, db_le - db_lc);
}
break;
#if __i386__ && __FreeBSD__
case 588: /* syscons's idea of up arrow key */
#endif
case CTRL('p'):
/* Make previous history line the active one. */
if (db_lhistcur >= 0) {
@ -239,9 +230,6 @@ db_inputchar(c)
goto hist_redraw;
}
break;
#if __i386__ && __FreeBSD__
case 596: /* syscons's idea of down arrow key */
#endif
case CTRL('n'):
/* Make next history line the active one. */
if (db_lhistcur < db_lhistidx - 1) {