diff options
author | ed <ed@FreeBSD.org> | 2009-09-18 15:39:09 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-09-18 15:39:09 +0000 |
commit | 87c8593067033119e40d28b40a47c236b8a5f7ac (patch) | |
tree | 0ebc8d07d0ebb69065a407bf76e27dbcbe983f54 /sys/dev/syscons | |
parent | 178f20a475fe771a1f28aa61b2f7647adf483572 (diff) | |
download | FreeBSD-src-87c8593067033119e40d28b40a47c236b8a5f7ac.zip FreeBSD-src-87c8593067033119e40d28b40a47c236b8a5f7ac.tar.gz |
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
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r-- | sys/dev/syscons/syscons.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index e75db9d..c980958 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -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); |