Date: Thu, 26 Apr 2001 18:45:22 -0700 From: Dima Dorfman <dima@unixfreak.org> To: audit@freebsd.org Subject: allscreens_flags for kbdcontrol patch Message-ID: <20010427014522.266B63E2A@bazooka.unixfreak.org>
next in thread | raw e-mail | index | archive | help
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? Reviews? (Or I'll have to file a PR about it!) Thanks in advance, 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-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010427014522.266B63E2A>