mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
note charsets are TODO
This commit is contained in:
1
TODO.md
1
TODO.md
@ -38,3 +38,4 @@ Major Features:
|
|||||||
* Kitty keyboard protocol: https://sw.kovidgoyal.net/kitty/keyboard-protocol/
|
* Kitty keyboard protocol: https://sw.kovidgoyal.net/kitty/keyboard-protocol/
|
||||||
* Kitty graphics protocol: https://sw.kovidgoyal.net/kitty/graphics-protocol/
|
* Kitty graphics protocol: https://sw.kovidgoyal.net/kitty/graphics-protocol/
|
||||||
* Mouse events
|
* Mouse events
|
||||||
|
* Charsets (i.e. line drawing, `CSI ( B` and so on)
|
||||||
|
@ -10,7 +10,13 @@ pub const Attribute = union(enum) {
|
|||||||
unset: void,
|
unset: void,
|
||||||
|
|
||||||
/// Unknown attribute, the raw CSI command parameters are here.
|
/// Unknown attribute, the raw CSI command parameters are here.
|
||||||
unknown: []const u16,
|
unknown: struct {
|
||||||
|
/// Full is the full SGR input.
|
||||||
|
full: []const u16,
|
||||||
|
|
||||||
|
/// Partial is the remaining, where we got hung up.
|
||||||
|
partial: []const u16,
|
||||||
|
},
|
||||||
|
|
||||||
/// Bold the text.
|
/// Bold the text.
|
||||||
bold: void,
|
bold: void,
|
||||||
@ -149,7 +155,7 @@ pub const Parser = struct {
|
|||||||
else => {},
|
else => {},
|
||||||
}
|
}
|
||||||
|
|
||||||
return Attribute{ .unknown = slice };
|
return Attribute{ .unknown = .{ .full = self.params, .partial = slice } };
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -413,6 +413,13 @@ pub fn Stream(comptime Handler: type) type {
|
|||||||
action: Parser.Action.ESC,
|
action: Parser.Action.ESC,
|
||||||
) !void {
|
) !void {
|
||||||
switch (action.final) {
|
switch (action.final) {
|
||||||
|
// Charsets
|
||||||
|
'B' => {
|
||||||
|
// TODO: Charset support. Just ignore this for now because
|
||||||
|
// every application sets this and it makes our logs SO
|
||||||
|
// noisy.
|
||||||
|
},
|
||||||
|
|
||||||
// DECSC - Save Cursor
|
// DECSC - Save Cursor
|
||||||
'7' => if (@hasDecl(T, "saveCursor")) switch (action.intermediates.len) {
|
'7' => if (@hasDecl(T, "saveCursor")) switch (action.intermediates.len) {
|
||||||
0 => try self.handler.saveCursor(),
|
0 => try self.handler.saveCursor(),
|
||||||
|
Reference in New Issue
Block a user