[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[STUMP] [PATCH] [StumpISh] Possibility not to use nccurses (so readline
From: |
38a938c2 |
Subject: |
[STUMP] [PATCH] [StumpISh] Possibility not to use nccurses (so readline works correctly) |
Date: |
Sun, 31 Aug 2008 22:03:47 +0400 |
User-agent: |
Thunderbird 2.0.0.14 (X11/20080825) |
Hello
I am a bit tired of completely broken readline in stumpish, so I prefer
to switch colour off. Default is colour on, control is done via
environment variable NO_NCURSES.
>From 860bc5a50eb1a74ccc910aec68a3f2b10f401ad4 Mon Sep 17 00:00:00 2001
From: 38a938c2 <address@hidden>
Date: Sun, 31 Aug 2008 21:50:53 +0400
Subject: [PATCH] Added possiility not to use ncurses for colouring.
---
contrib/stumpish | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/contrib/stumpish b/contrib/stumpish
index 55afd17..7b6bfd2 100755
--- a/contrib/stumpish
+++ b/contrib/stumpish
@@ -105,6 +105,10 @@ if [ "x$1" = "x-prefix" ]; then
shift 2;
fi;
+if [ -n "$NO_NCURSES" ]; then
+ tput () { : ; };
+fi;
+
if [ $# -gt 0 ]
then
[ "$1" = "--help" ] && usage
--
1.6.0
- [STUMP] [PATCH] [StumpISh] Possibility not to use nccurses (so readline works correctly),
38a938c2 <=