xterm-query

Crates.ioxterm-query
lib.rsxterm-query
version0.5.0
sourcesrc
created_at2022-01-03 21:14:25.520353
updated_at2024-10-14 09:48:30.873505
descriptionquery your terminal
homepage
repositoryhttps://github.com/Canop/xterm-query
max_upload_size
id507332
size19,329
Denys Séguret (Canop)

documentation

README

MIT Latest Version docs Chat on Miaou

Low level library to query the terminal with a CSI sequence and get the result as a string.

Notes:

  • the terminal must already be in raw mode
  • there's no Windows support (it should be possible with WSAPoll but I don't have any Windows computer to test so a PR would be welcome)

The provided example in examples/kitty demonstrates querying the terminal to know whether the Kitty graphics protocol is supported, and manages entering and leaving raw mode.

If you think you might use this crate but are unsure, don't hesitate to come to Miaou: s4

Commit count: 15

cargo fmt