fix(tui): tighten SGR fragment matching

This commit is contained in:
Brooklyn Nicholson 2026-04-30 17:50:49 -05:00
parent 71b685aee0
commit ded011c5a5
4 changed files with 11 additions and 5 deletions

View file

@ -1,8 +1,8 @@
import { writeSync } from 'node:fs'
export const TERMINAL_MODE_RESET =
"\x1b[0'z" + // DEC locator reporting
"\x1b[0'{" + // selectable locator events
'\x1b[0\'z' + // DEC locator reporting
'\x1b[0\'{' + // selectable locator events
'\x1b[?2029l' + // passive mouse
'\x1b[?1016l' + // SGR-pixels mouse
'\x1b[?1015l' + // urxvt decimal mouse