Skip to main content

Module termcap

Module termcap 

Source
Expand description

XTGETTCAP capability queries.

§Category

XTGETTCAP asks a terminal to report termcap/terminfo-style capability values using a DCS +q request.

§DCS framing

The writer emits ESC P + q <hex-name>[;<hex-name>...] ESC \\. Capability names are uppercase hexadecimal byte strings; an empty request emits nothing.

§Mode interaction

XTGETTCAP is a query, not a mode. Replies arrive asynchronously as DCS strings and must be parsed by input handling code.

Functions§

write_xtgettcap
Request terminal capability values with XTGETTCAP, ESC P + q <hex-caps> ESC \.