mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-27 11:06:31 +00:00
32 lines
769 B
Zig
32 lines
769 B
Zig
/// C0 (7-bit) control characters from ANSI.
|
|
///
|
|
/// This is not complete, control characters are only added to this
|
|
/// as the terminal emulator handles them.
|
|
pub const C0 = enum(u7) {
|
|
/// Null
|
|
NUL = 0x00,
|
|
/// Bell
|
|
BEL = 0x07,
|
|
/// Backspace
|
|
BS = 0x08,
|
|
// Horizontal tab
|
|
HT = 0x09,
|
|
/// Line feed
|
|
LF = 0x0A,
|
|
/// Carriage return
|
|
CR = 0x0D,
|
|
};
|
|
|
|
/// The SGR rendition aspects that can be set, sometimes known as attributes.
|
|
/// The value corresponds to the parameter value for the SGR command (ESC [ m).
|
|
pub const RenditionAspect = enum(u16) {
|
|
default = 0,
|
|
bold = 1,
|
|
default_fg = 39,
|
|
default_bg = 49,
|
|
|
|
// Non-exhaustive so that @intToEnum never fails since the inputs are
|
|
// user-generated.
|
|
_,
|
|
};
|