Cross platform terminal library rust
NO_COLOR
support (https://no-color.org/)NO_COLOR
(#802)window_size
function to fetch pixel width/height of screen for more sophisticated rendering in terminals.events
(to make crossterm more lightweight) (#776)std::io::Result
(#765)@Gronis, @kevin-vigor, @Wilfred, @benjajaja, @blt-r, @Piturnah, @kdheepak, @DeathVenom54, @senekor, @joseluis, @gibbz00, @lesleyrs, @jhartzell42
use-dev-tty
feature flag (#762)@yyogo @jcdickinson @the-mikedavis
SetCursorStyle
to set the cursor appearance and visibility. (#742)use-dev-tty
). (#735)SetCursorShape
in vavour of SetCursorStyle
. (#742)terminal::size
(#714)@pianohacker , @AhoyISki , @Cl00e9ment , @yyogo , @the-mikedavis , @djarb , @Piturnah , @MitMaro , @Yusuto , @generic-user1 , @baldoalessandro , @CenTdemeern1 , @Blatko1 , @aaarkid @basilkohler , @TimonPost
BREAKING: Copy
trait is removed from Event
, you can keep it by removing the "bracked-paste" feature flag. However, this flag might be standardized in the future.
We removed the Copy
from Event
because the new Paste
event, which contains a pasted string into the terminal, which is a non-copy string.
Event::Paste
and EnableBracketedPaste
).PushKeyboardEnhancementFlags
. This protocol allows for:
SetStyle
command to allow setting various styling in one command.Event::FocusGained
and Event::FocusLost
), WINDOWS ONLY.is_raw
function.crossterm::ErrorKind
to io::Error
.SetTitle
command.MoveToRow
command.PartialEq
and Eq
for ContentStyleCommand::ansi_code
to Command::write_ansi
, this way the ansi code will be written to given formatter.