Commit 87caa1b
committed
Fix three-byte escape sequences leaking final byte into history
Handle ECMA-48 escape sequences with intermediate bytes (0x20-0x2F)
such as ESC ( B (select ASCII for G0), ESC ) 0 (select DEC Special
Graphics for G1), and ESC # 8 (DECALN). These are commonly emitted by
ncurses programs (vim, less, htop) on exit. Previously only 2 bytes
were consumed, causing the final byte to leak into visibleText.1 parent b717055 commit 87caa1b
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
324 | 340 | | |
325 | 341 | | |
326 | 342 | | |
| |||
0 commit comments