szn

Bug 8 — reverseIndex emits wrong escape sequence

8. reverseIndex emits wrong escape sequence

File: src/tty/tty.zig:290–292

try self.write("\x1b[M");  // CSI M = Delete Line

Should be "\x1bM" (ESC M = Reverse Index, 2 bytes). Currently reverseIndex() and deleteLines(1) emit the exact same bytes. The test at line 644 also expects the wrong sequence. Status: ✅ FIXED — changed to \x1bM, test updated.


HIGH (memory leak, data corruption, functional breakage)