6 releases (breaking)

0.5.0 Oct 14, 2024
0.4.1 Jul 25, 2024
0.4.0 Mar 11, 2024
0.3.0 Mar 8, 2024
0.1.0 Jan 3, 2022

#229 in Command-line interface

Download history 1604/week @ 2024-07-22 2009/week @ 2024-07-29 2010/week @ 2024-08-05 1926/week @ 2024-08-12 1371/week @ 2024-08-19 1619/week @ 2024-08-26 1612/week @ 2024-09-02 1503/week @ 2024-09-09 1309/week @ 2024-09-16 1335/week @ 2024-09-23 1826/week @ 2024-09-30 2035/week @ 2024-10-07 2741/week @ 2024-10-14 2236/week @ 2024-10-21 1840/week @ 2024-10-28 1847/week @ 2024-11-04

8,880 downloads per month
Used in 23 crates (2 directly)

MIT license

10KB
153 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 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

Dependencies

~2.5MB
~52K SLoC