aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-09-13 22:32:22 +0000
committerBill Nottingham <notting@redhat.com>1999-09-13 22:32:22 +0000
commitc869540984a1342361dfeb00613e1002543b96fa (patch)
tree35444ad35a6c26a2a6f6558c07aae3b655ab58bc
parent474609c1735d42d865a72558fadfab61fe4e79a2 (diff)
downloadinitscripts-c869540984a1342361dfeb00613e1002543b96fa.tar
initscripts-c869540984a1342361dfeb00613e1002543b96fa.tar.gz
initscripts-c869540984a1342361dfeb00613e1002543b96fa.tar.bz2
initscripts-c869540984a1342361dfeb00613e1002543b96fa.tar.xz
initscripts-c869540984a1342361dfeb00613e1002543b96fa.zip
Duh. Use different terminal escape.
-rwxr-xr-xrc.d/init.d/functions3
-rw-r--r--sysconfig/init2
2 files changed, 2 insertions, 3 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 1ecdfa13..37b6ced7 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -1,4 +1,3 @@
-
#!/bin/sh
#
# functions This file contains functions to be used by most or all
@@ -25,7 +24,7 @@ if [ -z "$BOOTUP" ]; then
# or in /usr/doc/initscripts-*/sysconfig.txt
BOOTUP=color
RES_COL=60
- MOVE_TO_COL="echo -en \\033[300C\\033[$[${COLUMNS}-${RES_COL}]D"
+ MOVE_TO_COL="echo -en \\033[${RES_COL}G"
SETCOLOR_SUCCESS="echo -en \\033[1;32m"
SETCOLOR_FAILURE="echo -en \\033[1;31m"
SETCOLOR_WARNING="echo -en \\033[1;33m"
diff --git a/sysconfig/init b/sysconfig/init
index 8a2d68f5..ef12b932 100644
--- a/sysconfig/init
+++ b/sysconfig/init
@@ -6,7 +6,7 @@ BOOTUP=color
RES_COL=60
# terminal sequence to move to that column. You could change this
# to something like "tput hpa ${RES_COL}" if your terminal supports it
-MOVE_TO_COL="echo -en \\033[300C\\033[$[${COLUMNS}-${RES_COL}]D"
+MOVE_TO_COL="echo -en \\033[${RES_COL}G"
# terminal sequence to set color to a 'success' color (currently: green)
SETCOLOR_SUCCESS="echo -en \\033[1;32m"
# terminal sequence to set color to a 'failure' color (currently: red)