Skip to content
This repository was archived by the owner on May 21, 2019. It is now read-only.

Commit 773ccda

Browse files
committed
Report correct cursor position.
1 parent 6c30ad3 commit 773ccda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ANSIParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ export class ANSIParser {
507507
if (param === 6) {
508508
url = "http://www.vt100.net/docs/vt510-rm/CPR";
509509
short = "Report Cursor Position (CPR) [row;column] as CSI r ; c R";
510-
this.terminalDevice.write(csi(`${this.screenBuffer.cursorRow + 1};${this.screenBuffer.cursorRow + 1}R`));
510+
this.terminalDevice.write(csi(`${this.screenBuffer.cursorRow + 1};${this.screenBuffer.cursorColumn + 1}R`));
511511
} else {
512512
status = "unhandled";
513513
}

0 commit comments

Comments
 (0)