From owner-freebsd-hackers Tue Apr 24 21:47:35 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id 1866E37B440 for ; Tue, 24 Apr 2001 21:47:32 -0700 (PDT) (envelope-from dima@unixfreak.org) Received: from spike.unixfreak.org (spike [63.198.170.139]) by bazooka.unixfreak.org (Postfix) with ESMTP id B0D7A3E2A for ; Tue, 24 Apr 2001 21:47:31 -0700 (PDT) To: hackers@freebsd.org Subject: allscreens_flags for kbdcontrol (patch) Date: Tue, 24 Apr 2001 21:47:31 -0700 From: Dima Dorfman Message-Id: <20010425044731.B0D7A3E2A@bazooka.unixfreak.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The attached patch adds an rc.conf option, allscreenskbd_flags, which does the same thing as allscreens_flags except it runs kbdcontrol instead of vidcontrol. I'm not really sure why these programs were separated, but that's another story. This patch allows one to stick 'allscreenskbd_flags="-h 200"' in rc.conf and automatically have the scrollback buffer size set to 200 lines for all the virtual terminals. Comments? Thanks, Dima Dorfman dima@unixfreak.org Index: rc.syscons =================================================================== RCS file: /st/src/FreeBSD/src/etc/rc.syscons,v retrieving revision 1.1 diff -u -r1.1 rc.syscons --- rc.syscons 2001/01/09 22:28:17 1.1 +++ rc.syscons 2001/04/25 03:55:46 @@ -173,4 +173,13 @@ done fi +# set this mode for all virtual screens, but use kbdcontrol +# +if [ -n "${allscreenskbd_flags}" ]; then + echo -n ' allscreenskbd' + for ttyv in /dev/ttyv*; do + kbdcontrol ${allscreenskbd_flags} < ${ttyv} > ${ttyv} 2>&1 + done +fi + echo '.' Index: defaults/rc.conf =================================================================== RCS file: /st/src/FreeBSD/src/etc/defaults/rc.conf,v retrieving revision 1.99 diff -u -r1.99 rc.conf --- defaults/rc.conf 2001/04/04 16:48:56 1.99 +++ defaults/rc.conf 2001/04/25 03:55:47 @@ -293,6 +293,7 @@ moused_port="/dev/psm0" # Set to your mouse port. moused_flags="" # Any additional flags to moused. allscreens_flags="" # Set this vidcontrol mode for all virtual screens +allscreenskbd_flags="" # Set this kbdcontrol mode for all virtual screens ############################################################## To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message