enum
TermBuf::Capability
Overview
What the terminal on the other end can be asked to do.
Detection fills this in; the encoder only reads it. Anything not known to be supported is treated as unsupported, so a terminal nobody recognises gets plain text rather than a screen full of escape sequences.
Defined in:
termbuf/caps/capability.crEnum Members
-
Color16 =
1_u64 -
The eight colours of SGR 30-37 and 40-47.
-
Color256 =
2_u64 -
The 256 colour palette, through SGR 38;5 and 48;5.
-
TrueColor =
4_u64 -
24 bit colour, through SGR 38;2 and 48;2.
-
BrightColors =
8_u64 -
The aixterm bright colour codes, SGR 90-97 and 100-107. Without this, palette indices 8 through 15 fall back to their dim counterparts, and a bright foreground picks up bold if bold is available.
-
Bold =
16_u64 -
Faint =
32_u64 -
Italic =
64_u64 -
Underline =
128_u64 -
SGR 4 and 24.
-
ExtendedUnderline =
256_u64 -
The
4:2through4:5subparameter underline styles. Without this, every underline style degrades to a plain one. -
UnderlineColor =
512_u64 -
SGR 58 and 59, colouring the underline separately from the text.
-
Blink =
1024_u64 -
RapidBlink =
2048_u64 -
Reverse =
4096_u64 -
Conceal =
8192_u64 -
Strike =
16384_u64 -
Overline =
32768_u64 -
Superscript =
65536_u64 -
ScrollRegion =
131072_u64 -
DECSTBM and the SU/SD scroll commands, which is what lets a scrolled region be moved rather than redrawn.
-
InsertDeleteLine =
262144_u64 -
IL and DL.
-
EraseChars =
524288_u64 -
ECH, erasing a run of cells without writing spaces over them.
-
SynchronizedOutput =
1048576_u64 -
DEC private mode 2026, wrapping a paint so the terminal never shows a half-drawn frame.
-
AltScreen =
2097152_u64 -
The alternate screen buffer, DEC private mode 1049.
-
BracketedPaste =
4194304_u64 -
FocusEvents =
8388608_u64 -
MouseSgr =
16777216_u64 -
KittyKeyboard =
33554432_u64 -
Osc8Links =
67108864_u64 -
KittyGraphics =
134217728_u64 -
KittyGraphicsTempFile =
268435456_u64 -
KittyColorStack =
536870912_u64 -
Titles =
1073741824_u64 -
CursorShape =
2147483648_u64 -
None =
0_u64 -
All =
4294967295_u64
Instance Method Summary
-
#alt_screen?
Returns
trueif this enum value containsAltScreen -
#blink?
Returns
trueif this enum value containsBlink -
#bold?
Returns
trueif this enum value containsBold -
#bracketed_paste?
Returns
trueif this enum value containsBracketedPaste -
#bright_colors?
Returns
trueif this enum value containsBrightColors -
#color16?
Returns
trueif this enum value containsColor16 -
#color256?
Returns
trueif this enum value containsColor256 -
#conceal?
Returns
trueif this enum value containsConceal -
#cursor_shape?
Returns
trueif this enum value containsCursorShape -
#erase_chars?
Returns
trueif this enum value containsEraseChars -
#extended_underline?
Returns
trueif this enum value containsExtendedUnderline -
#faint?
Returns
trueif this enum value containsFaint -
#focus_events?
Returns
trueif this enum value containsFocusEvents -
#insert_delete_line?
Returns
trueif this enum value containsInsertDeleteLine -
#italic?
Returns
trueif this enum value containsItalic -
#kitty_color_stack?
Returns
trueif this enum value containsKittyColorStack -
#kitty_graphics?
Returns
trueif this enum value containsKittyGraphics -
#kitty_graphics_temp_file?
Returns
trueif this enum value containsKittyGraphicsTempFile -
#kitty_keyboard?
Returns
trueif this enum value containsKittyKeyboard -
#mouse_sgr?
Returns
trueif this enum value containsMouseSgr - #none?
-
#osc8_links?
Returns
trueif this enum value containsOsc8Links -
#overline?
Returns
trueif this enum value containsOverline -
#rapid_blink?
Returns
trueif this enum value containsRapidBlink -
#reverse?
Returns
trueif this enum value containsReverse -
#scroll_region?
Returns
trueif this enum value containsScrollRegion -
#strike?
Returns
trueif this enum value containsStrike -
#superscript?
Returns
trueif this enum value containsSuperscript -
#synchronized_output?
Returns
trueif this enum value containsSynchronizedOutput -
#titles?
Returns
trueif this enum value containsTitles -
#true_color?
Returns
trueif this enum value containsTrueColor -
#underline?
Returns
trueif this enum value containsUnderline -
#underline_color?
Returns
trueif this enum value containsUnderlineColor