Magellan Linux

Annotation of /trunk/kbd/patches/kbd-1.08-terminal.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (hide annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years, 1 month ago) by niro
File size: 925 byte(s)
-import

1 niro 144 Output terminal control sequences only when output is a terminal.
2    
3     --- kbd-1.08/src/unicode_start 2002-11-22 19:23:00.000000000 -0500
4     +++ kbd-1.08/src/unicode_start 2002-11-22 19:24:34.000000000 -0500
5     @@ -1,4 +1,4 @@
6     -#!/bin/sh
7     +#!/bin/bash
8     # Enables Unicode processing in the current console.
9     #
10     # 1. The input side: the keyboard driver.
11     @@ -25,7 +25,9 @@
12     # Tell the console output driver that the bytes arriving are UTF-8
13     # encoded multibyte sequences.
14    
15     -echo -n -e '\033%G'
16     +if test -t 1 -a -t 2 ; then
17     + echo -n -e '\033%G'
18     +fi
19    
20     # Tell the graphics card how to display Unicode characters not
21     # contained in the IBM 437 character set (on PCs). The font should
22     --- kbd-1.08/src/unicode_stop 2002-11-22 19:23:30.000000000 -0500
23     +++ kbd-1.08/src/unicode_stop 2002-11-22 19:24:15.000000000 -0500
24     @@ -1,4 +1,6 @@
25     #!/bin/sh
26     # stop unicode
27     kbd_mode -a
28     -echo -n -e '\033%@'
29     +if test -t ; then
30     + echo -n -e '\033%@'
31     +fi