From c869540984a1342361dfeb00613e1002543b96fa Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 13 Sep 1999 22:32:22 +0000 Subject: Duh. Use different terminal escape. --- rc.d/init.d/functions | 3 +-- sysconfig/init | 2 +- 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) -- cgit v1.2.1