keymaps now sets unicode keyboard on all defined ttys, #192442

thanks to Pacho Ramos.
This commit is contained in:
Roy Marples 2007-09-28 12:54:48 +00:00
parent b894cdb738
commit befddaf241
2 changed files with 14 additions and 6 deletions

View File

@ -3,6 +3,8 @@
28 Sep 2007; Roy Marples <uberlord@gentoo.org>: 28 Sep 2007; Roy Marples <uberlord@gentoo.org>:
keymaps now sets unicode keyboard on all defined ttys, #192442
thanks to Pacho Ramos.
net.sh now checks to see if root is net mounted if no predown function net.sh now checks to see if root is net mounted if no predown function
exists, #194074. exists, #194074.
enums are now fixed to specific values and are in UPPER CASE. enums are now fixed to specific values and are in UPPER CASE.

View File

@ -30,6 +30,10 @@ start() {
esac esac
local WINDOWKEYS_KEYMAP= LOADKEYS_UNI= local WINDOWKEYS_KEYMAP= LOADKEYS_UNI=
local ttydev= n=
[ -d /dev/vc ] \
&& ttydev=/dev/vc/ \
|| ttydev=/dev/tty
checkconfig || return 1 checkconfig || return 1
@ -40,7 +44,11 @@ start() {
# Turn on unicode if user wants it # Turn on unicode if user wants it
if [ "${UNICODE}" = "yes" ]; then if [ "${UNICODE}" = "yes" ]; then
kbd_mode -u n=1
while [ ${n} -le "${RC_TTY_NUMBER}" ]; do
kbd_mode -u -C "${ttydev}${n}"
n=$((${n} + 1))
done
LOADKEYS_UNI="--unicode" LOADKEYS_UNI="--unicode"
fi fi
@ -74,11 +82,9 @@ start() {
termencoding="%@" termencoding="%@"
termmsg="ASCII" termmsg="ASCII"
fi fi
local n=1 ttydev=
[ -d /dev/vc ] \
&& ttydev=/dev/vc/ \
|| ttydev=/dev/tty
ebegin "Setting terminal encoding to" ${termmsg} ebegin "Setting terminal encoding to" ${termmsg}
n=1
while [ ${n} -le "${RC_TTY_NUMBER}" ] ; do while [ ${n} -le "${RC_TTY_NUMBER}" ] ; do
printf "\033%s" "${termencoding}" >"${ttydev}${n}" printf "\033%s" "${termencoding}" >"${ttydev}${n}"
n=$((${n} + 1)) n=$((${n} + 1))