Just use ttydisc_rint_simple() instead of doing it ourselves.

This code seems to do exactly the same as ttydisc_rint_simple() does
nowadays. Just remove it.

Obtained from:	//depot/user/ed/newcons/sys/dev/syscons/syscons.c
This commit is contained in:
ed 2009-09-18 15:39:09 +00:00
parent 178f20a475
commit 87c8593067

View File

@ -634,14 +634,8 @@ sckbdevent(keyboard_t *thiskbd, int event, void *arg)
break;
case FKEY: /* function key, return string */
cp = kbdd_get_fkeystr(thiskbd, KEYCHAR(c), &len);
if (cp != NULL) {
if (ttydisc_can_bypass(cur_tty)) {
ttydisc_rint_bypass(cur_tty, cp, len);
} else {
while (len-- > 0)
ttydisc_rint(cur_tty, *cp++, 0);
}
}
if (cp != NULL)
ttydisc_rint_simple(cur_tty, cp, len);
break;
case MKEY: /* meta is active, prepend ESC */
ttydisc_rint(cur_tty, 0x1b, 0);