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
[EMAIL PROTECTED]
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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message