xterm: answer DSR 6 one-based; list the local patches
The cursor position report sent zero-based coordinates (the app's terminal session overrides it with the same fix, which keeps working). The vendored README now lists every local patch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -52,6 +52,11 @@ void main() {
|
||||
expect(t.buffer.cursorY, 3);
|
||||
});
|
||||
|
||||
test('DSR 6 reports the one-based cursor position', () {
|
||||
final t = FixtureTerminal()..feed('\x1b[3;7H\x1b[6n');
|
||||
expect(t.takeReplies(), '\x1b[3;7R');
|
||||
});
|
||||
|
||||
test('zero counts mean one', () {
|
||||
final t = FixtureTerminal()..feed('\x1b[0C\x1b[0B');
|
||||
expect(t.buffer.cursorX, 1);
|
||||
|
||||
Reference in New Issue
Block a user