fix SetCursorPosXY; had rows/cols flipped
This commit is contained in:
1 parent
13a856bbb2
commit
6ed0e81f02
1 file changed
+1
-1
+1
-1
@@ -211,7 +211,7 @@ impl<'a> CSIParser<'a> {
|
||||
// With no parameters, home the cursor
|
||||
Some(CSIAction::SetCursorXY(0, 0))
|
||||
}
|
||||
&[x, y] => {
|
||||
&[y, x] => {
|
||||
self.advance_by(2, params);
|
||||
// Co-ordinates are 1-based, but we want 0-based
|
||||
Some(CSIAction::SetCursorXY((x - 1) as usize, (y - 1) as usize))
|
||||
|
||||
Reference in new issue
Block a user