tbot icon indicating copy to clipboard operation
tbot copied to clipboard

Unhandled escape sequences clobber tbot output

Open Rahix opened this issue 2 years ago • 0 comments

I've seen a shell send the following escape sequences which tbot doesn't handle well:

│   ├─(690600)< '\x1b7\x1b[r\x1b[999;999H\x1b[6n'

Individually, these mean:

Sequence Meaning
\x1b7 Save Cursor (DECSC)
\x1b[r ?
\x1b[999;999H Cursor Position [row;column] (default = [1,1]) (CUP)
\x1b[6n Report Cursor Position (CPR) [row;column]

Rahix avatar Aug 12 '22 11:08 Rahix