| ... | ... | @@ -65,20 +65,20 @@ fn arr_i_to_s(x: anytype) [][]const u8 { |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | pub const csi = struct { |
| 68 | | fn CursorUp(n: i32) []const u8 { return make_csi_sequence("A", .{n}); } |
| 69 | | fn CursorDown(n: i32) []const u8 { return make_csi_sequence("B", .{n}); } |
| 70 | | fn CursorForward(n: i32) []const u8 { return make_csi_sequence("C", .{n}); } |
| 71 | | fn CursorBack(n: i32) []const u8 { return make_csi_sequence("D", .{n}); } |
| 72 | | fn CursorNextLine(n: i32) []const u8 { return make_csi_sequence("E", .{n}); } |
| 73 | | fn CursorPrevLine(n: i32) []const u8 { return make_csi_sequence("F", .{n}); } |
| 74 | | fn CursorHorzAbs(n: i32) []const u8 { return make_csi_sequence("G", .{n}); } |
| 75 | | fn CursorPos(n: i32, m: i32) []const u8 { return make_csi_sequence("H", .{n, m}); } |
| 76 | | fn EraseInDisplay(n: i32) []const u8 { return make_csi_sequence("J", .{n}); } |
| 77 | | fn EraseInLine(n: i32) []const u8 { return make_csi_sequence("K", .{n}); } |
| 78 | | fn ScrollUp(n: i32) []const u8 { return make_csi_sequence("S", .{n}); } |
| 79 | | fn ScrollDown(n: i32) []const u8 { return make_csi_sequence("T", .{n}); } |
| 80 | | fn HorzVertPos(n: i32, m: i32) []const u8 { return make_csi_sequence("f", .{n, m}); } |
| 81 | | fn SGR(ns: anytype) []const u8 { return make_csi_sequence("m", ns); } |
| 68 | pub fn CursorUp(n: i32) []const u8 { return make_csi_sequence("A", .{n}); } |
| 69 | pub fn CursorDown(n: i32) []const u8 { return make_csi_sequence("B", .{n}); } |
| 70 | pub fn CursorForward(n: i32) []const u8 { return make_csi_sequence("C", .{n}); } |
| 71 | pub fn CursorBack(n: i32) []const u8 { return make_csi_sequence("D", .{n}); } |
| 72 | pub fn CursorNextLine(n: i32) []const u8 { return make_csi_sequence("E", .{n}); } |
| 73 | pub fn CursorPrevLine(n: i32) []const u8 { return make_csi_sequence("F", .{n}); } |
| 74 | pub fn CursorHorzAbs(n: i32) []const u8 { return make_csi_sequence("G", .{n}); } |
| 75 | pub fn CursorPos(n: i32, m: i32) []const u8 { return make_csi_sequence("H", .{n, m}); } |
| 76 | pub fn EraseInDisplay(n: i32) []const u8 { return make_csi_sequence("J", .{n}); } |
| 77 | pub fn EraseInLine(n: i32) []const u8 { return make_csi_sequence("K", .{n}); } |
| 78 | pub fn ScrollUp(n: i32) []const u8 { return make_csi_sequence("S", .{n}); } |
| 79 | pub fn ScrollDown(n: i32) []const u8 { return make_csi_sequence("T", .{n}); } |
| 80 | pub fn HorzVertPos(n: i32, m: i32) []const u8 { return make_csi_sequence("f", .{n, m}); } |
| 81 | pub fn SGR(ns: anytype) []const u8 { return make_csi_sequence("m", ns); } |
| 82 | 82 | }; |
| 83 | 83 | |
| 84 | 84 | pub const style = struct { |