Date: Mon, 06 Feb 2012 22:07:21 +0900 (JST) From: TAKAHASHI Yoshihiro <nyan@FreeBSD.org> To: nwhitehorn@freebsd.org Cc: svn-src-head@freebsd.org, ed@80386.nl, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r230482 - head/release Message-ID: <20120206.220721.343708041459090867.nyan@FreeBSD.org> In-Reply-To: <4F2EA4F7.9010204@freebsd.org> References: <1F971DB2-9CC6-41C9-9296-039D63E05FC2@FreeBSD.org> <20120128.193030.322386357550021613.nyan@FreeBSD.org> <4F2EA4F7.9010204@freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
In article <4F2EA4F7.9010204@freebsd.org>
Nathan Whitehorn <nwhitehorn@freebsd.org> writes:
>>>>> TERM=xterm
>>>> This code is also used on pc98, right? I think on pc98 we still need
>>>> to
>>>> use TERM=cons25w, to support Japanese character sets and keyboard
>>>> input.
>> How about the attached patch?
>
> The top half looks OK. The bottom half (the menu) is relevant only for
> serial consoles. I guess people could be viewing a remote serial
> console on a PC-98 graphics console, but then it shouldn't be
> conditionalized on PC98 machines.
Ok. I update the patch.
---
TAKAHASHI Yoshihiro <nyan@FreeBSD.org>
[-- Attachment #2 --]
Index: src/release/rc.local
===================================================================
RCS file: /home/ncvs/src/release/rc.local,v
retrieving revision 1.6
diff -u -r1.6 rc.local
--- src/release/rc.local 23 Jan 2012 16:17:54 -0000 1.6
+++ src/release/rc.local 6 Feb 2012 13:04:37 -0000
@@ -8,10 +8,16 @@
: ${DIALOG_ITEM_HELP=4}
: ${DIALOG_ESC=255}
+MACHINE=`uname -m`
+
kbdcontrol -d >/dev/null 2>&1
if [ $? -eq 0 ]; then
# Syscons: use xterm, start interesting things on other VTYs
- TERM=xterm
+ if [ ${MACHINE} = "pc98" ]; then
+ TERM=cons25w
+ else
+ TERM=xterm
+ fi
if [ -z "$EXTERNAL_VTY_STARTED" ]; then
# Init will clean these processes up if/when the system
@@ -31,6 +37,7 @@
echo " ansi Standard ANSI terminal"
echo " vt100 VT100 or compatible terminal"
echo " xterm xterm terminal emulator (or compatible)"
+ echo " cons25w cons25w terminal"
echo
echo -n "Console type [vt100]: "
read TERM
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120206.220721.343708041459090867.nyan>
