projects
/
platform
/
upstream
/
kbd.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add pancyrillic font
[platform/upstream/kbd.git]
/
src
/
unicode_stop
1
#!/bin/sh
2
3
TTY="`/usr/bin/tty`"
4
case "$TTY" in
5
/dev/console|/dev/vc*|/dev/tty[0-9]*)
6
;;
7
*)
8
echo "unicode_stop skipped on $TTY"
9
exit 0
10
;;
11
esac
12
13
# stop unicode
14
kbd_mode -a
15
if test -t ; then
16
printf '\033%%@'
17
fi
18
stty -iutf8
19
20
uid="`id -u 2>/dev/null`" ||:
21
if [ "$uid" = '0' ]; then
22
[ ! -r "$HOME/.kbd/.keymap_sv" ] ||
23
loadkeys "$HOME/.kbd/.keymap_sv"
24
fi