32b2036c3c
Thu Jan 30 2003 Bill Nottingham <notting@redhat.com> 1.08-4 - remove condrestart from initscript Wed Jan 22 2003 Tim Powers <timp@redhat.com> - rebuilt Fri Dec 06 2002 Nalin Dahyabhai <nalin@redhat.com> 1.08-2 - only output terminal unicode init sequence if both stdout and stderr are connected to terminals, so that it doesn't show up when script outputs get piped to files Fri Nov 22 2002 Nalin Dahyabhai <nalin@redhat.com> 1.08-1 - update to 1.08 - drop updates which went mainline Mon Nov 11 2002 Nalin Dahyabhai <nalin@redhat.com> 1.06-27 - add detached signature - remove directory names from PAM configuration so that the same config file can be used for any arch on multilib systems
32 lines
925 B
Diff
32 lines
925 B
Diff
Output terminal control sequences only when output is a terminal.
|
|
|
|
--- kbd-1.08/src/unicode_start 2002-11-22 19:23:00.000000000 -0500
|
|
+++ kbd-1.08/src/unicode_start 2002-11-22 19:24:34.000000000 -0500
|
|
@@ -1,4 +1,4 @@
|
|
-#!/bin/sh
|
|
+#!/bin/bash
|
|
# Enables Unicode processing in the current console.
|
|
#
|
|
# 1. The input side: the keyboard driver.
|
|
@@ -25,7 +25,9 @@
|
|
# 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
|
|
--- kbd-1.08/src/unicode_stop 2002-11-22 19:23:30.000000000 -0500
|
|
+++ kbd-1.08/src/unicode_stop 2002-11-22 19:24:15.000000000 -0500
|
|
@@ -1,4 +1,6 @@
|
|
#!/bin/sh
|
|
# stop unicode
|
|
kbd_mode -a
|
|
-echo -n -e '\033%@'
|
|
+if test -t ; then
|
|
+ echo -n -e '\033%@'
|
|
+fi
|