4 releases (breaking)

0.4.0 Mar 11, 2024
0.3.0 Mar 8, 2024
0.2.0 Jul 11, 2022
0.1.0 Jan 3, 2022

#312 in Command-line interface

Download history 876/week @ 2023-12-23 1050/week @ 2023-12-30 774/week @ 2024-01-06 794/week @ 2024-01-13 758/week @ 2024-01-20 669/week @ 2024-01-27 867/week @ 2024-02-03 749/week @ 2024-02-10 706/week @ 2024-02-17 989/week @ 2024-02-24 900/week @ 2024-03-02 2038/week @ 2024-03-09 1008/week @ 2024-03-16 1026/week @ 2024-03-23 980/week @ 2024-03-30 748/week @ 2024-04-06

3,921 downloads per month
Used in 15 crates (2 directly)

MIT license

7KB
89 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
~53K SLoC