mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
handle SO/SI but don't do anything yet (just don't crash)
This commit is contained in:
@ -17,6 +17,10 @@ pub const C0 = enum(u7) {
|
|||||||
VT = 0x0B,
|
VT = 0x0B,
|
||||||
/// Carriage return
|
/// Carriage return
|
||||||
CR = 0x0D,
|
CR = 0x0D,
|
||||||
|
/// Shift out
|
||||||
|
SO = 0x0E,
|
||||||
|
/// Shift in
|
||||||
|
SI = 0x0F,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The SGR rendition aspects that can be set, sometimes known as attributes.
|
/// The SGR rendition aspects that can be set, sometimes known as attributes.
|
||||||
|
@ -67,6 +67,7 @@ pub fn Stream(comptime Handler: type) type {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn execute(self: *Self, c: u8) !void {
|
fn execute(self: *Self, c: u8) !void {
|
||||||
|
// log.warn("C0: {}", .{c});
|
||||||
switch (@intToEnum(ansi.C0, c)) {
|
switch (@intToEnum(ansi.C0, c)) {
|
||||||
.NUL => {},
|
.NUL => {},
|
||||||
|
|
||||||
@ -100,6 +101,9 @@ pub fn Stream(comptime Handler: type) type {
|
|||||||
try self.handler.carriageReturn()
|
try self.handler.carriageReturn()
|
||||||
else
|
else
|
||||||
log.warn("unimplemented execute: {x}", .{c}),
|
log.warn("unimplemented execute: {x}", .{c}),
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
.SO, .SI => log.warn("TODO: Shift out/Shift in", .{}),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user