Commit 7a41b73b authored by Kurt Hindenburg's avatar Kurt Hindenburg

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
parent ab75e68b
...@@ -278,7 +278,7 @@ void Vt102Emulation::initTokenizer() ...@@ -278,7 +278,7 @@ void Vt102Emulation::initTokenizer()
#define epe( ) (p >= 3 && s[2] == '!') #define epe( ) (p >= 3 && s[2] == '!')
#define egt( ) (p >= 3 && s[2] == '>') #define egt( ) (p >= 3 && s[2] == '>')
#define Xpe (tokenBufferPos >= 2 && tokenBuffer[1] == ']') #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 ces(C) (cc < 256 && (charClass[cc] & (C)) == (C) && !Xte)
#define CNTL(c) ((c)-'@') #define CNTL(c) ((c)-'@')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment