summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <[email protected]>2017-04-24 23:28:01 -0400
committerKurt Hindenburg <[email protected]>2017-05-05 08:11:29 -0400
commit7a41b73b46d1f774e82eb64a8b66920e411ccd3c (patch)
tree483d85e88ebcf323b50e971fcb4dd5e1af239abb
parentab75e68b1122d03a189af1d199ee8a0fc7fefa29 (diff)
Correct ANSI string terminator
Use the correct decimal value 27 In bash, PS1="\e]0;<title>\e\\" or PS1="\e]0;<title>\033" BUG: 231405 Differential Revision: https://phabricator.kde.org/D5576
-rw-r--r--src/Vt102Emulation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Vt102Emulation.cpp b/src/Vt102Emulation.cpp
index 7add1f5..60f2a9a 100644
--- a/src/Vt102Emulation.cpp
+++ b/src/Vt102Emulation.cpp
@@ -278,7 +278,7 @@ void Vt102Emulation::initTokenizer()
#define epe( ) (p >= 3 && s[2] == '!')
#define egt( ) (p >= 3 && s[2] == '>')
#define Xpe (tokenBufferPos >= 2 && tokenBuffer[1] == ']')
-#define Xte (Xpe && (cc == 7 || cc == 33))
+#define Xte (Xpe && (cc == 7 || cc == 27))
#define ces(C) (cc < 256 && (charClass[cc] & (C)) == (C) && !Xte)
#define CNTL(c) ((c)-'@')