mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
CSI aliases
This commit is contained in:
@ -141,7 +141,7 @@ pub fn Stream(comptime Handler: type) type {
|
|||||||
|
|
||||||
switch (action.final) {
|
switch (action.final) {
|
||||||
// CUU - Cursor Up
|
// 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) {
|
switch (action.params.len) {
|
||||||
0 => 1,
|
0 => 1,
|
||||||
1 => action.params[0],
|
1 => action.params[0],
|
||||||
@ -177,7 +177,7 @@ pub fn Stream(comptime Handler: type) type {
|
|||||||
) else log.warn("unimplemented CSI callback: {}", .{action}),
|
) else log.warn("unimplemented CSI callback: {}", .{action}),
|
||||||
|
|
||||||
// CUB - Cursor Left
|
// 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) {
|
switch (action.params.len) {
|
||||||
0 => 1,
|
0 => 1,
|
||||||
1 => action.params[0],
|
1 => action.params[0],
|
||||||
|
Reference in New Issue
Block a user