From ab93beaa1506aee5282ecc162d1ebdc61e771cda Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 25 Jun 2023 10:30:25 -0700 Subject: [PATCH] CSI aliases --- src/terminal/stream.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terminal/stream.zig b/src/terminal/stream.zig index 6879b7222..6301e9b16 100644 --- a/src/terminal/stream.zig +++ b/src/terminal/stream.zig @@ -141,7 +141,7 @@ pub fn Stream(comptime Handler: type) type { switch (action.final) { // CUU - Cursor Up - 'A' => if (@hasDecl(T, "setCursorUp")) try self.handler.setCursorUp( + 'A', 'k' => if (@hasDecl(T, "setCursorUp")) try self.handler.setCursorUp( switch (action.params.len) { 0 => 1, 1 => action.params[0], @@ -177,7 +177,7 @@ pub fn Stream(comptime Handler: type) type { ) else log.warn("unimplemented CSI callback: {}", .{action}), // CUB - Cursor Left - 'D' => if (@hasDecl(T, "setCursorLeft")) try self.handler.setCursorLeft( + 'D', 'j' => if (@hasDecl(T, "setCursorLeft")) try self.handler.setCursorLeft( switch (action.params.len) { 0 => 1, 1 => action.params[0],