Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Sep 2009 15:39:09 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r197315 - head/sys/dev/syscons
Message-ID:  <200909181539.n8IFd9Sl094891@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909181539.n8IFd9Sl094891>