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
wilder-portage
Kurt Hindenburg 9 years ago
parent ab75e68b11
commit 7a41b73b46
  1. 2
      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)-'@')

Loading…
Cancel
Save