Commit Graph

359 Commits

Author SHA1 Message Date
Siphalor
f523c110a6
Fix zero terminal sizes being treated as ok in Unix (#680) 2022-06-30 21:34:10 +02:00
ahoyiski
ad0d100304
Add support for other underline types and the ability to color them (#679) 2022-06-30 21:33:49 +02:00
Garmelon
73a8ecc95f
Amend docs for cursor::position (#674) 2022-06-30 21:28:38 +02:00
Timon
645685641a Clarify that SetSize resizes the terminal buffer. 2022-06-30 20:30:36 +02:00
Kian-Meng Ang
21155716e2
Fix typos (#675) 2022-06-06 18:10:06 +02:00
mgunyho
39e6f1c3a1
Fix some broken links in docs (#671) 2022-05-29 18:41:34 +02:00
Nick Lanham
09ffd70c30
remove stray println in color serialization (#661) 2022-05-23 08:49:10 +02:00
Demonthos
d48ae42824
handle mouse up event for right and middle buttons (#665) 2022-05-23 08:43:48 +02:00
dnlmlr
35d58ccc30
Fix escape codes for git-bash on 3rd party terms (#657)
- Fix ansi escape codes not being handled properly for git-bash when
  running terminal emulators other than the included mingw terminal
- ENABLE_VIRTUAL_TERMINAL_PROCESSING is necessary for terminal emulators
  other than the included
- Switching around the OR always tries to enable it, but if it doesn't
  work still reports ansi support depending on the `TERM` envvar
- This should fix issue #656
2022-05-17 14:03:48 +02:00
Mathias Kaas-Olsen
0b4a06a97f
Windows input improvements (#651) 2022-04-23 10:12:30 +02:00
Gustav Sörnäs
5b19aa6d6a
Use internal doc-links and add a new link (#653) 2022-04-23 10:11:46 +02:00
Ivan Tham
c90f3190df
Update to signal-hook-mio 0.8 (#645) 2022-04-02 18:58:03 +02:00
yjhn
0cb34f1df2
Fix links in docs (#639) 2022-03-15 21:48:38 +01:00
WindSoilder
e920d0cfd7
Fix control-character parsing in windows (#629) 2022-02-27 19:19:07 +01:00
zohnannor
9bc5cd3527
Fix typos (#630) 2022-02-17 13:49:41 +01:00
Timon
9a50fd2ce2
0.23 (#627) 2022-02-06 14:21:19 +01:00
David Arnold
979245da22
Add CSIu parser for unix (#595) 2022-02-06 10:59:29 +01:00
WindSoilder
32028c43e9
Improve windows event parsing (#619) 2022-02-06 10:53:52 +01:00
Nissa
aa4959f8f5
Changed MoveToNextLine(0) and MoveToPreviousLine(0) to move 0 lines (#600) 2022-02-06 10:42:49 +01:00
forouhar
59f90fb586
Documentation edit (#615) 2022-02-06 10:39:48 +01:00
Timon
db956267f8
0.22.1 (#614)
# Version 0.22.1
- Update yanked version crossterm-winapi and move to  crossterm-winapi 0.9.0.
- Changed panic to error when calling disable-mouse capture without setting it first.
- Update bitflags dependency.

# Version 0.22
- Fix serde Color serialisation/deserialization inconsistency.
- Update crossterm-winapi 0.8.1 to fix panic for certain mouse events
2021-10-19 10:19:16 +02:00
Timon
4e72bd1c7e
Remove deserialize_any and fix inconsitent serialize format. (#604) 2021-10-11 21:58:14 +02:00
Canop
fe5c303fcf
Make KeyEvent::new a const fn (#606) 2021-10-11 21:04:59 +02:00
sigmaSd
d638d15cd4
Don't run raw_mode test on the ci (#598) 2021-08-25 13:19:53 +02:00
Timon
f909b3db95
0.21 (#596) 2021-08-23 19:07:55 +02:00
mgunyho
91564b5868
Fix Greys in colors table (#585) 2021-08-23 17:30:16 +02:00
Canop
ec1ed6879e
Expose is_raw_mode_enabled() function (#592) 2021-08-13 13:13:37 +02:00
Termina94
abe2c57129
Add option to clear terminal history and current screen content. 2021-08-13 13:10:32 +02:00
mgunyho
24d0f561e8
Docs: Add some links related to raw mode (#581) 2021-07-26 18:21:21 +02:00
kWeiZh
c983000b51
Implement custom deserialisation for ansi value and rgb (#576) 2021-07-01 18:27:23 +02:00
Timon
70a3f6ff49
Remove Space 2021-06-26 18:14:44 +02:00
Timon
a618a9f3b3
0.20 (#567) 2021-06-10 15:55:34 +02:00
Kestrer
0e8be6a891
Unify Colorize and Styler as Stylize (#571) 2021-06-10 15:29:22 +02:00
Kestrer
e1260446e9
Remove writer parameter from execute_winapi (#570) 2021-06-10 15:20:00 +02:00
sigmaSd
b31782249e
Fix building with the event-stream feature (#566) 2021-05-06 11:28:07 +02:00
Erick Tryzelaar
576990cb82
Update to signal-hook 0.3.8, signal-hook-mio 0.2.1 (#558) 2021-05-05 15:59:09 +02:00
feathecutie
8a3105a68b
Fixed typo in docs of Command (#564) 2021-05-05 15:57:58 +02:00
Necrosovereign
92f62ba86f
KeyEvent case normalizing equality (#541) 2021-04-13 08:49:04 +02:00
Plecra
58f580eaad
crossterm::ErrorKind to io::Error (#553) 2021-04-13 08:46:51 +02:00
SirWindfield
b4bdbfc9f3
Remove Unneeded Imports (#552) 2021-03-28 13:49:38 +02:00
Cowboy8625
b450b67812
Added Cursor Shape Support (#548) 2021-03-28 13:49:11 +02:00
SirWindfield
6a8f4fdf94
Fix clippy warnings (#551) 2021-03-28 13:46:32 +02:00
Spencer Gouw
a9d9aff3f0
Documentation Fix (#543) 2021-03-04 08:57:52 +01:00
Danny Milosavljevic
0b598075b7
Add support for function keys F13...F20. (#542) 2021-02-27 09:21:18 +01:00
Koxiaet
8eee94246e
Add examples to {Color, Colored}::parse_ansi (#535) 2021-01-11 19:27:08 +01:00
sigmaSd
761ea46c95
Add movetorow command (#532) 2021-01-11 19:22:23 +01:00
Koxiaet
e35cab2408
Remove extra Clone bounds in the style module (#534) 2021-01-04 09:16:08 +01:00
Timon Post
5319f3c673 Fix compile error. 2021-01-03 21:42:52 +01:00
Koxiaet
1418580fed
Remove lazy_static dependency (#530) 2021-01-03 14:40:22 +01:00
Koxiaet
df0c2358fd
Inline ansi modules (#529) 2021-01-03 14:29:29 +01:00
joyal-mathew
b442de72be
Fixed typo in src/cursor.rs (#531) 2021-01-02 15:26:26 +01:00
Koxiaet
6c0f8ebcf6
Fix clippy warnings (#533) 2021-01-02 15:24:34 +01:00
Koxiaet
6a1114b241
Support taking any Display in SetTitle (#528) 2020-12-30 18:50:44 +01:00
Timon
e46decc2f3
Fix wrong resize size return (#526) 2020-12-28 10:15:50 +01:00
Kartoffelsaft
744ec05f19
Add support for combining some modifier keys (#518) 2020-12-28 09:59:44 +01:00
Koxiaet
0797441893
Make imports & docs more consistent (#524) 2020-12-28 09:47:20 +01:00
Koxiaet
5be7d18475
Replace AnsiType with write_ansi (#523) 2020-12-28 07:56:32 +01:00
Koxiaet
52bed07ce8
Simplify ansi_support (#522) 2020-12-26 19:31:34 +01:00
AlephAlpha
8f6ba34349
Derive PartialEq and Eq for ContentStyle (#519) 2020-12-05 11:07:16 +01:00
Koxiaet
e5d3959119
Add support for any event tracking (#502) 2020-11-22 13:52:15 +01:00
Carl-Erwin Griffith
30ce6364a9
Fix InternalEventReader::poll timeout computation (#511) 2020-11-14 10:48:42 +01:00
quininer
4eee9187d8
Use a single thread for event stream (#503) 2020-11-03 10:39:47 +01:00
David Sherret
901070f138
Fix panic when only setting bold and redirecting stdout. (#498) 2020-10-28 21:29:01 +01:00
Andrea Jemmett
aa8436e41a
Use tty_fd for set/get terminal attributes (#501) 2020-10-24 16:38:03 +02:00
David Sherret
4b1c857914
Fix enabling ANSI support when stdout is redirected. (#497) 2020-10-10 22:03:12 +02:00
Max Sharnoff
efb06b8baa
improve formatting for color parsing docs (#496) 2020-10-10 09:32:18 +02:00
Max Sharnoff
6730e4050a
Add links to submodules in crate-level docs (#492) 2020-09-29 09:11:27 +02:00
Sebastian Thiel
4c7abf6109
Fix formatting (#493) 2020-09-29 09:09:24 +02:00
Timon
4a6c8efdca
Sync Backtab to also include pressed SHIFT (#490) 2020-09-21 09:23:38 +02:00
sigmaSd
2857b30f24
Fix ALT + numbers and ignore invalid keys (#488) 2020-09-18 14:52:27 +02:00
sigmaSd
729f3c6931
Expose supports_ansi (#489) 2020-09-17 13:36:08 +02:00
vojta7
34a6e414f6
Added enabling/disabling line wrap. (#485) 2020-09-11 10:19:41 +02:00
truchi
93a5d880d8
StyledContent::fmt: reseting foreground/background on their own (#483) 2020-09-11 10:17:57 +02:00
Blaž Hrastnik
c01693ff78
Rely on futures-core instead of futures-util to speed up compile. (#480) 2020-09-08 08:42:41 +02:00
hagsteel
53afe55612
Update event.rs (#479) 2020-09-08 08:40:56 +02:00
Michael McDonnell
7732861e4d
Fix clippy warnings (#477) 2020-09-06 20:38:17 +02:00
Michael McDonnell
27a9d7d521
Fix move by zero (#476) 2020-09-06 14:05:46 +02:00
Michael McDonnell
c7d8fa3bc1
Fix spelling (#475)
Fixed the spelling in a few comments.
2020-09-01 22:07:12 +02:00
truchi
0b429e5dcf
Incoherent derived traits (#471) 2020-08-03 08:06:09 +02:00
sigmaSd
32215ec7f5
Grand writer access for winapi commands. 2020-07-20 12:58:04 +02:00
Timon
6326795700
Get position bug fixed (#465) 2020-07-13 21:32:56 +02:00
Arne Beer
30b7d99364
Add more documentation about the IsTty trait (#461) 2020-07-12 12:16:18 +02:00
Nathan Kessler
5365bf976c
Remove unnecessary apostrophe from doc (#463) 2020-07-12 12:15:23 +02:00
Timon
5e1c214f8c
0.17.6 2020-07-06 19:57:35 +02:00
Max Sharnoff
13e0d012ce
Implement styler traits for &'a str (#449) 2020-07-06 19:46:43 +02:00
Jacob O'Toole
9d9dfeae26
Add ANSI color parsing and expose Colored enum (#451) 2020-07-06 19:14:53 +02:00
Sebastian Thiel
d80afb51be
Switch from 'futures' to 'futures-util' crate to reduce dependency count (#454) 2020-07-06 19:10:43 +02:00
Timon
c5fc1a1493
Mio 0.7.0 update (#435) 2020-07-02 15:06:38 +02:00
Barret Rennie
dfafcc09ac
Make windows raw_mode act on CONIN$ 2020-07-02 13:52:09 +02:00
Cowboy8625
b9c8dcdbfa
Added From<(u8, u8, u8)> Trait to Color::Rgb Enum. (#440) 2020-06-10 13:35:06 +02:00
Odin Dutton
5511f85d50
Implement Color::try_from() (#439) 2020-05-28 19:08:30 +02:00
Andrey Kutejko
1dffc4f955
Parse key modifiers (#426)
- Improved key modifier support.
2020-05-18 19:12:31 +02:00
Timon
bc1f913487
Fixed compile error linux. (#434) 2020-05-18 19:01:39 +02:00
Matheus Lessa Rodrigues
88add302cd
Implementing SetTitle command (#429) 2020-05-16 07:41:43 +02:00
Max Sharnoff
43fbdfce0d
Add macros for Colorize and Styler impls, add an impl for String (#420) 2020-04-24 19:47:38 +02:00
Stephan Dilly
d4fc75cca1
Add shift modifier to uppercase char events on unix (#423) 2020-04-24 07:19:23 +02:00
Bill
128eddeafc
fix single typo (#417) 2020-04-11 07:43:00 +02:00
m-lima
1dd20f3ada
Issue 406: Keep FileDesc alive long enough for ioctl to work (#413) 2020-04-09 19:34:45 +02:00
Nathan Wilson
3efa8b9477
Removed some unnecessary parentheses and braces. (#409) 2020-04-04 09:21:18 +02:00
Jan Hlavatý
428519994c
Fix handling of unicode characters > 255 (#411) 2020-04-04 09:19:20 +02:00