2 unstable releases

0.2.0 Jul 11, 2022
0.1.0 Jan 3, 2022

#613 in Command-line interface

Download history 339/week @ 2023-06-01 181/week @ 2023-06-08 687/week @ 2023-06-15 344/week @ 2023-06-22 249/week @ 2023-06-29 261/week @ 2023-07-06 798/week @ 2023-07-13 1223/week @ 2023-07-20 756/week @ 2023-07-27 650/week @ 2023-08-03 616/week @ 2023-08-10 918/week @ 2023-08-17 684/week @ 2023-08-24 794/week @ 2023-08-31 638/week @ 2023-09-07 556/week @ 2023-09-14

2,770 downloads per month
Used in 10 crates (2 directly)

MIT license

7KB
72 lines

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 WinAPI 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

Dependencies

~0.4–9MB
~83K SLoC