From 355ca4063ced46ea990e68e5abdda62826386f2c Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Mon, 24 Apr 2017 23:28:01 -0400 Subject: [PATCH] Correct ANSI string terminator Use the correct decimal value 27 In bash, PS1="\e]0;\e\\" or PS1="\e]0;<title>\033" BUG: 231405 Differential Revision: https://phabricator.kde.org/D5576 (cherry picked from commit 7a41b73b46d1f774e82eb64a8b66920e411ccd3c) --- src/Vt102Emulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vt102Emulation.cpp b/src/Vt102Emulation.cpp index e71567ea..51fb59f2 100644 --- a/src/Vt102Emulation.cpp +++ b/src/Vt102Emulation.cpp @@ -280,7 +280,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)-'@')