kbd/kbd-1.08-terminal.patch

40 lines
1.3 KiB
Diff

diff -up kbd-1.12/src/unicode_start.terminal kbd-1.12/src/unicode_start
--- kbd-1.12/src/unicode_start.terminal 2001-02-12 17:30:17.000000000 +0100
+++ kbd-1.12/src/unicode_start 2008-09-08 17:24:51.000000000 +0200
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Enables Unicode processing in the current console.
#
# 1. The input side: the keyboard driver.
@@ -25,14 +25,16 @@ dumpkeys | loadkeys --unicode
# Tell the console output driver that the bytes arriving are UTF-8
# encoded multibyte sequences.
-echo -n -e '\033%G'
+if test -t 1 -a -t 2 ; then
+ echo -n -e '\033%G'
+fi
# Tell the graphics card how to display Unicode characters not
# contained in the IBM 437 character set (on PCs). The font should
# have a Unicode map attached, or explicitly specified, e.g.,
# by giving `def.uni' as a second argument.
-DEFAULT_UNICODE_FONT=LatArCyrHeb-16
+DEFAULT_UNICODE_FONT=latarcyrheb-sun16
# Also drdos8x16 is a good candidate.
case $# in
diff -up kbd-1.12/src/unicode_stop.terminal kbd-1.12/src/unicode_stop
--- kbd-1.12/src/unicode_stop.terminal 1997-11-13 14:22:52.000000000 +0100
+++ kbd-1.12/src/unicode_stop 2008-09-08 17:24:51.000000000 +0200
@@ -1,4 +1,6 @@
#!/bin/sh
# stop unicode
kbd_mode -a
-echo -n -e '\033%@'
+if test -t ; then
+ echo -n -e '\033%@'
+fi