41 Commits

Author SHA1 Message Date
mtgmonkey
555b28e25a add tons of codes 2025-07-08 15:31:23 -04:00
mtgmonkey
e1082e47cb implement get_cursor_pos 2025-07-08 12:15:21 -04:00
Lucas Schwiderski
7a31a7346b Update nom to v8 2025-04-22 22:06:44 +02:00
Lucas Schwiderski
af1951d169 Update heapless to v0.8.0 2024-05-15 19:10:49 +02:00
Lucas Schwiderski
27beb4bc1f Update to nom@7 2023-11-07 16:46:25 +01:00
David Bittner
6ed05bfb18 Merge branch 'debug_for_ansi_parse_iterator' into 'master'
Add `Debug` derive for `AnsiParseIterator`

See merge request davidbittner/ansi-parser!10
2022-05-16 14:15:53 +00:00
David Bittner
e7de019ac8 Merge branch 'clone_output' into 'master'
Impl `Clone` to `Output`

See merge request davidbittner/ansi-parser!9
2022-05-16 14:15:13 +00:00
Maxim Zhiburt
92658d5486 Fix cargo fmt 2022-01-31 19:12:01 +03:00
Maxim Zhiburt
9d45910632 Fix clippy 2022-01-31 19:11:47 +03:00
Maxim Zhiburt
a0a76d91b9 Add Debug derive for AnsiParseIterator 2022-01-31 19:08:48 +03:00
Maxim Zhiburt
37dd573d95 Add Clone to Output
So `.cloned()` can be called on iterator.
2022-01-31 19:07:23 +03:00
David Bittner
b1c780152e resolved conflicts 2020-10-05 14:43:45 -04:00
David Bittner
446c27e666 Merge branch 'no_std' into 'master'
no_std support

Closes #1

See merge request davidbittner/ansi-parser!5
2020-10-05 18:38:53 +00:00
Dániel Buga
dcac225384 Escaping the escape character 2020-10-05 15:01:04 +02:00
Dániel Buga
09b23760ed Make AnsiSequence Clone 2020-10-05 12:22:17 +02:00
Dániel Buga
abce537ffe Change parse_escape to return an AnsiSequence 2020-10-05 12:19:37 +02:00
Dániel Buga
dafb7d7f08 Make parse_escape public 2020-10-05 12:04:52 +02:00
Dániel Buga
2925f56c1f no_std
Add `std` default feature
Only implement for String if `std` is enabled
Replace std Vec with heapless
2020-10-05 11:56:07 +02:00
Dániel Buga
71a582b31f Clean up deprecated and clippy warnings 2020-10-05 11:00:07 +02:00
mulark
ec11225d38 Fix fmt::Display for 5-part SGR escapes 2020-09-17 19:31:05 -06:00
David Bittner
4a09914aa0 Merge branch 'truecolor_escape_support' into 'master'
Add support for parsing 5-part SetGraphicsMode escape (TrueColor)

See merge request davidbittner/ansi-parser!1
2020-09-11 17:36:34 +00:00
mulark
fb1dd49c52 Default cursor position handling 2020-09-10 22:00:41 -06:00
Leon Kowarschick
b7c414559c Add support for parsing 5-part SetGraphicsMode escape (TrueColor) 2020-06-27 18:28:34 +02:00
David Bittner
5162590828 forgot the special case of printing the empty graphics escape sequence 2019-05-10 10:28:01 -04:00
David Bittner
9520aeafbf missed the empty graphics mode sequence 2019-05-10 10:26:25 -04:00
David Bittner
0eac7e3ab5 added more parsers, almost have all of the escape sequences 2019-05-10 10:12:49 -04:00
David Bittner
2b8ef9dcd5 whoops, namespace issues 2019-05-06 17:03:19 -04:00
David Bittner
d9872e03e6 added ansi_parse trait so things are more ergonomic 2019-05-06 17:01:17 -04:00
David Bittner
8dd86b6da3 adding testing macro 2019-05-06 16:37:03 -04:00
David Bittner
38a5f31e47 adding a lot more sequences 2019-05-06 16:18:46 -04:00
David Bittner
8c1408cefe adding new sequences from the VT100 list 2019-05-04 11:24:58 -04:00
David Bittner
a8d429d223 added high cursor and show cursor 2019-05-02 23:46:46 -04:00
David Bittner
b1c17325f7 properly handles unknown ansi escapes by adding them as plain text 2019-05-02 23:04:41 -04:00
David Bittner
0b7e534ae4 fixed issues with SetGraphicsMode sequence 2019-05-02 19:33:21 -04:00
David Bittner
b9ca804814 used wrong escape code, whoops... 2019-04-27 17:07:57 -04:00
David Bittner
d533eac192 updating readme 2019-04-27 15:08:04 -04:00
David Bittner
7cc3642f92 added display implementation for all the ANSI Sequences 2019-04-27 15:03:51 -04:00
David Bittner
29eb11a1e1 adding docs, updating Cargo.toml 2019-04-26 22:12:39 -04:00
David Bittner
3ef51ec9e0 done, kinda hacky solution but it works 2019-04-26 20:01:34 -04:00
David Bittner
c2b8f5ed57 it all works, just need to figure out how to deal with the end of the stream 2019-04-26 17:58:27 -04:00
David Bittner
cf99422b0a first commit, things are coming together 2019-04-26 15:01:11 -04:00