Debian Codegraph @

src/unicode_stop

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
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