svn commit: r197315 - head/sys/dev/syscons
Ed Schouten
ed at FreeBSD.org
Fri Sep 18 15:39:10 UTC 2009
Author: ed
Date: Fri Sep 18 15:39:09 2009
New Revision: 197315
URL: http://svn.freebsd.org/changeset/base/197315
Log:
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
Modified:
head/sys/dev/syscons/syscons.c
Modified: head/sys/dev/syscons/syscons.c
==============================================================================
--- head/sys/dev/syscons/syscons.c Fri Sep 18 15:12:31 2009 (r197314)
+++ head/sys/dev/syscons/syscons.c Fri Sep 18 15:39:09 2009 (r197315)
@@ -634,14 +634,8 @@ sckbdevent(keyboard_t *thiskbd, int even
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);
More information about the svn-src-head
mailing list