[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[STUMP] [PATCH 1/3] Don't assume controlling terminal (if any) uses ANSI
From: |
Trent W\. Buck |
Subject: |
[STUMP] [PATCH 1/3] Don't assume controlling terminal (if any) uses ANSI escape sequences. |
Date: |
Thu, 13 Dec 2007 06:10:18 +1100 |
---
contrib/stumpish | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/contrib/stumpish b/contrib/stumpish
index 4f158ea..35e10ba 100755
--- a/contrib/stumpish
+++ b/contrib/stumpish
@@ -110,16 +110,24 @@ else
rm -f "$COMMANDS"
exit
fi
-
- echo -e '\e[1;35mWelcome to the StumpWM Interactive
Shell.\n\e[37mType \e[32mcommands\e[37m for a list of commands.\e[0m'
+
+ tput setaf 5
+ echo Welcome to the StumpWM Interactive Shell.
+ tput sgr0
+ echo -n 'Type '
+ tput setaf 2
+ echo -n commands
+ tput sgr0
+ echo \ for a list of commands.
IFS='
'
while read -p "> "
do
- echo -ne '\e[1;32m'
+ tput bold
+ tput setaf 2
send_cmd "$REPLY"
- echo -ne '\e[0m'
+ tput sgr0
done
else
--
debian.1.5.3.7.1-dirty
- [STUMP] [PATCH 1/3] Don't assume controlling terminal (if any) uses ANSI escape sequences.,
Trent W\. Buck <=