summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeoff Wing <gcw@users.sourceforge.net>2004-08-07 08:43:56 +0000
committerGeoff Wing <gcw@users.sourceforge.net>2004-08-07 08:43:56 +0000
commitfd62429d19b652877cdce97f0508c2c3924049f5 (patch)
tree3b2a16773e74c70f72e4ed6b0021b78e4d154996
parentde79a249999ce970c3b4bc3097b1d6a0695307cb (diff)
downloadzsh-fd62429d19b652877cdce97f0508c2c3924049f5.tar.gz
zsh-fd62429d19b652877cdce97f0508c2c3924049f5.zip
still allow user specified text modifiers with a short terminal.
Only disallow if the terminal is really unknown or without sufficient capabilities or if SINGLE_LINE_ZLE option is given
-rw-r--r--ChangeLog7
-rw-r--r--Src/prompt.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4fa42e068..6ff964fc3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-08-07 Geoff Wing <gcw@zsh.org>
+
+ * 20196: Src/prompt.c: still allow user specified text modifiers
+ with a short terminal. Only disallow if the terminal is really
+ unknown or without sufficient capabilities or if SINGLE_LINE_ZLE
+ option is specified
+
2004-08-06 Peter Stephenson <pws@csr.com>
* 20232 with typo corrected: Functions/Zftp/zfcd: remove
diff --git a/Src/prompt.c b/Src/prompt.c
index 3b16a8e44..b05bbf110 100644
--- a/Src/prompt.c
+++ b/Src/prompt.c
@@ -749,7 +749,8 @@ stradd(char *d)
mod_export void
tsetcap(int cap, int flag)
{
- if (!(termflags & TERM_SHORT) && tcstr[cap]) {
+ if (tccan(cap) && !isset(SINGLELINEZLE) &&
+ !(termflags & (TERM_NOUP|TERM_BAD|TERM_UNKNOWN))) {
switch(flag) {
case -1:
tputs(tcstr[cap], 1, putraw);