aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-09-18 15:39:09 +0000
committerEd Schouten <ed@FreeBSD.org>2009-09-18 15:39:09 +0000
commit790dd1b5af4890149e27fd0a993fe7368df21fd6 (patch)
tree0ebc8d07d0ebb69065a407bf76e27dbcbe983f54
parent99bf30cf01af2495b03b6bfc6e4af0d6d79f450b (diff)
downloadsrc-790dd1b5af4890149e27fd0a993fe7368df21fd6.tar.gz
src-790dd1b5af4890149e27fd0a993fe7368df21fd6.zip
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
Notes
Notes: svn path=/head/; revision=197315
-rw-r--r--sys/dev/syscons/syscons.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index e75db9df799b..c9809583d923 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);