diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-09-01 00:00:32 +0200 |
commit | ca9627e70852f6b2e835660df870fe3ab405882d (patch) | |
tree | 0a008b1d5b16fa0679a195ed7b5662c7891f591c /sys-apps/kbd/files/kbd-1.14-ds-unicode.patch | |
download | darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2 darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip |
Initial import
Diffstat (limited to 'sys-apps/kbd/files/kbd-1.14-ds-unicode.patch')
-rw-r--r-- | sys-apps/kbd/files/kbd-1.14-ds-unicode.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/sys-apps/kbd/files/kbd-1.14-ds-unicode.patch b/sys-apps/kbd/files/kbd-1.14-ds-unicode.patch new file mode 100644 index 0000000..9a21352 --- /dev/null +++ b/sys-apps/kbd/files/kbd-1.14-ds-unicode.patch @@ -0,0 +1,59 @@ +diff -dPNur kbd-1.14.1/src/unicode_start kbd-1.14.1-unicode/src/unicode_start +--- kbd-1.14.1/src/unicode_start 2008-03-24 17:03:56.000000000 +0100 ++++ kbd-1.14.1-unicode/src/unicode_start 2008-07-04 23:20:41.000000000 +0200 +@@ -3,7 +3,7 @@ + # 0. Check whether we're on a console + TTY="`/usr/bin/tty`" + case "$TTY" in +- /dev/console|/dev/vc*|/dev/tty[0-9]*) ++ /dev/console|/dev/vc*|/dev/tty*|/dev/pts/*) + ;; + *) + echo "unicode_start skipped on $TTY" >&2 +diff -dPNur kbd-1.14.1/src/unicode_stop kbd-1.14.1-unicode/src/unicode_stop +--- kbd-1.14.1/src/unicode_stop 2008-03-24 17:03:56.000000000 +0100 ++++ kbd-1.14.1-unicode/src/unicode_stop 2008-07-04 23:22:18.000000000 +0200 +@@ -1,8 +1,13 @@ + #!/bin/sh + +-TTY="`/usr/bin/tty`" ++if [ -z "$1" ]; then ++ TTY="`/usr/bin/tty`" ++else ++ TTY=$1 ++fi ++ + case "$TTY" in +- /dev/console|/dev/vc*|/dev/tty[0-9]*) ++ /dev/console|/dev/vc*|/dev/tty*|/dev/pts/*) + ;; + *) + echo "unicode_stop skipped on $TTY" +@@ -11,14 +16,23 @@ + esac + + # stop unicode +-kbd_mode -a +-if test -t ; then ++if [ -z "$1" ]; then ++ kbd_mode -a ++ if test -t ; then + printf '\033%%@' ++ fi ++ stty -iutf8 ++else ++ kbd_mode -a -C $TTY ++ if test -t ; then ++ printf '\033%%@' > $TTY ++ fi ++ stty -F $TTY -iutf8 + fi +-stty -iutf8 + + uid="`id -u 2>/dev/null`" ||: + if [ "$uid" = '0' ]; then + [ ! -r "$HOME/.kbd/.keymap_sv" ] || + loadkeys "$HOME/.kbd/.keymap_sv" + fi ++setfont +\ No newline at end of file |