cursor position absolute needs to ignore all the offset stuff

This commit is contained in:
Mitchell Hashimoto
2022-08-02 10:30:20 -07:00
parent 1fbfc8a664
commit 2b80699179
2 changed files with 16 additions and 7 deletions

View File

@@ -706,13 +706,7 @@ pub fn setCursorUp(self: *Window, amount: u16) !void {
}
pub fn setCursorCol(self: *Window, col: u16) !void {
if (self.terminal.modes.origin == 1) {
// TODO
log.err("setCursorCol: implement origin mode", .{});
unreachable;
}
self.terminal.setCursorPos(self.terminal.screen.cursor.y + 1, col);
self.terminal.setCursorColAbsolute(col);
}
pub fn setCursorRow(self: *Window, row: u16) !void {