terminal: ignore invalid C0 escape codes

This commit is contained in:
Mitchell Hashimoto
2022-12-14 20:57:31 -08:00
parent c01a9f583f
commit 36c6e95dfc
2 changed files with 6 additions and 1 deletions

View File

@@ -23,6 +23,10 @@ pub const C0 = enum(u7) {
SO = 0x0E,
/// Shift in
SI = 0x0F,
// Non-exhaustive so that @intToEnum never fails since the inputs are
// user-generated.
_,
};
/// The SGR rendition aspects that can be set, sometimes known as attributes.