All Versions
64
Latest Version
Avg Release Cycle
13 days
Latest Release
-
Changelog History
Page 4
Changelog History
Page 4
-
v0.13.1 Changes
November 04, 2019- ๐ Fix Async Reader, join background thread and avoid looping forever on windows.
-
v0.13.0 Changes
๐ Major API-change, removed old-api
- โ Remove
Crossterm
type - โ Remove
TerminalCursor
,TerminalColor
,Terminal
- โ Remove
cursor()
,color()
,terminal()
- โ Remove re-exports at root, accessible via
module::types
(cursor::MoveTo
) input
module- Derive 'Copy' for 'KeyEvent'
- Add the
EnableMouseCapture
andEnableMouseCapture
commands
cursor
module- Introduce static function
crossterm::cursor::position
in place ofTerminalCursor::pos
- Rename
Goto
toMoveTo
- Rename
Up
toMoveLeft
- Rename
Right
toMoveRight
- Rename
Down
toMoveDown
- Rename
BlinkOn
toEnableBlinking
- Rename
BlinkOff
toDisableBlinking
- Rename
ResetPos
toResetPosition
- Rename
SavePos
toSavePosition
- Introduce static function
terminal
- Introduce static function
crossterm::terminal::size
in place ofTerminal::size
- Introduce static function
crossterm::terminal::exit
in place ofTerminal::exit
- Introduce static function
- ๐
style module
- Rename
ObjectStyle
toContentStyle
. Now full names are used for methods - Rename
StyledObject
toStyledContent
and made members private - Rename
PrintStyledFont
toPrintStyledContent
- Rename
attr
method toattribute
. - Rename
Attribute::NoInverse
toNoReverse
- Update documentation
- Made
Colored
private, user should use commands instead - Rename
SetFg
->SetForegroundColor
- Rename
SetBg
->SetBackgroundColor
- Rename
SetAttr
->SetAttribute
- Rename
ContentStyle::fg_color
->ContentStyle::foreground_color
- Rename
ContentStyle::bg_color
->ContentStyle::background_color
- Rename
ContentStyle::attrs
->ContentStyle::attributes
- Rename
- ๐ Improve documentation
- Unix terminal size calculation with TPUT
- โ Remove
-
v0.12.1 Changes
- ๐ Move all the
crossterm_
crates code was moved to thecrossterm
cratecrossterm_cursor
is in thecursor
module, etc.- All these modules are public
- No public API breaking changes
- ๐ Move all the
-
v0.12.0 Changes
October 21, 2019- ๐ Following crates are deprecated and no longer maintained
crossterm_cursor
crossterm_input
crossterm_screen
crossterm_style
crossterm_terminal
crossterm_utils
crossterm_cursor
0.4.0- ๐จ Internal refactoring (PR #2)
- Improved public documentation
sys
module is no longer public
- ๐ Fixed examples link (PR #6)
- ๐ Sync documentation style (PR #7)
- โ Removed all references to the crossterm book (PR #8)
- Replaced
RAW_MODE_ENABLED
withis_raw_mode_enabled
(PR #9) - ๐ Use
SyncReader
&InputEvent::CursorPosition
forpos_raw()
(PR #10)
crossterm_input
0.5.0- ๐จ Internal refactoring (PR #3)
- Removed unsafe
static mut
- Documentation update
- Remove all references to the crossterm book
- Removed unsafe
- ๐ Sync documentation style (PR #4)
- ๐ Sync
SyncReader::next()
Windows and UNIX behavior (PR #5) - โ Remove all references to the crossterm book (PR #6)
- ๐ Mouse coordinates synchronized with the cursor (PR #7)
- Upper/left reported as
(0, 0)
- Upper/left reported as
- ๐ Fixed bug that read sync didn't block (Windows) (PR #8)
- ๐จ Refactored UNIX readers (PR #9)
- AsyncReader produces mouse events
- One reading thread per application, not per
AsyncReader
- Cursor position no longer consumed by another
AsyncReader
- Implemented sync reader for read_char (requires raw mode)
- Fixed
SIGTTIN
when executed under the LLDB - Added mio for reading from FD and more efficient polling (UNIX only)
- ๐ Sync UNIX and Windows vertical mouse position (PR #11)
- Top is always reported as
0
- Top is always reported as
crossterm_screen
0.3.2to_alternate
switch back to main screen if it fails to switch into raw mode (PR #4)- ๐ Improve the documentation (PR #5)
- Public API
- Include the book content in the documentation
- โ Remove all references to the crossterm book (PR #6)
- ๐ New commands introduced (PR #7)
EnterAlternateScreen
LeaveAlternateScreen
- ๐ Sync Windows and UNIX raw mode behavior (PR #8)
๐
crossterm_style
0.5.2- ๐
Refactoring (PR #2)
- Added unit tests
- Restructured files
- Improved documentation and added book page to lib.rs
- Fixed bug with
SetBg
command, WinApi logic - Fixed bug with
StyledObject
, used stdout for resetting terminal color - Introduced
ResetColor
command
- ๐ Sync documentation style (PR #3)
- โ Remove all references to the crossterm book (PR #4)
- ๐ Windows 7 grey/white foreground/intensity swapped (PR #5)
crossterm_terminal
0.3.2- โ Removed
crossterm_cursor::sys
dependency (PR #2) - ๐ Internal refactoring & documentation (PR #3)
- โ Removed all references to the crossterm book (PR #4)
crossterm_utils
0.4.0- โ Add deprecation note (PR #3)
- โ Remove all references to the crossterm book (PR #4)
- โ Remove unsafe static mut (PR #5)
sys::unix::RAW_MODE_ENABLED
replaced withsys::unix::is_raw_mode_enabled()
(breaking)- New
lazy_static
dependency
crossterm_winapi
0.3.0- ๐ Make read sync block for windows systems (PR #2)
- ๐ Following crates are deprecated and no longer maintained
-
v0.11.1 Changes
September 25, 2019๐ Version 0.11.1
- ๐ Maintenance release
- ๐ All sub-crates were moved to their own repositories in the
crossterm-rs
organization
-
v0.11.0 Changes
September 24, 2019๐ As a preparation for crossterm 0.1.0 we have moved crossterm to an organisation called 'crossterm-rs'.
Code Quality
- ๐ Code Cleanup: [warning-cleanup], [crossterm_style-cleanup], crossterm_screen-cleanup, crossterm_terminal-cleanup, crossterm_utils-cleanup, 2018-cleanup, api-cleanup-1, api-cleanup-2, api-cleanup-3
- Examples: example-cleanup_1, example-cleanup_2, example-fix, commandbar-fix, snake-game-improved
- ๐ Fixed all broken tests and added tests
Important Changes
- Return written bytes: return-written-bytes
- โ Added derives:
Debug
forObjectStyle
debug-derive, Serialize/Deserialize for key events serde - ๐ Improved error handling:
- Return
crossterm::Result
from all api's: return_crossterm_resultTerminalCursor::pos()
returnsResult<(u16, u16)>
Terminal::size()
returnsResult<(u16, u16)>
TerminalCursor::move_*
returnscrossterm::Result
ExecutableCommand::queue
returnscrossterm::Result
QueueableCommand::queue
returnscrossterm::Result
get_available_color_count
returns no resultRawScreen::into_raw_mode
returnscrossterm::Result
instead ofio::Result
RawScreen::disable_raw_mode
returnscrossterm::Result
instead ofio::Result
AlternateScreen::to_alternate
returnscrossterm::Result
instead ofio::Result
TerminalInput::read_line
returnscrossterm::Result
instead ofio::Result
TerminalInput::read_char
returnscrossterm::Result
instead ofio::Result
- Maybe I forgot something, a lot of functions have changed
- Removed all unwraps/expects from library
- Return
- โ Added KeyEvent::Enter and KeyEvent::Tab: added-key-event-enter, added-key-event-tab
- ๐ Synced set/get terminal size behaviour: [fixed-get-set-terminal-size]
- Method renames:
AsyncReader::stop_reading()
tostop()
RawScreen::disable_raw_mode_on_drop
tokeep_raw_mode_on_drop
TerminalCursor::reset_position()
torestore_position()
Command::get_anis_code()
toansi_code()
available_color_count
toavailable_color_count()
Terminal::terminal_size
toTerminal::size
Console::get_handle
toConsole::handle
- ๐ All
i16
values for indexing: set size, set cursor pos, scrolling synced tou16
values - Command API takes mutable self instead of self
โ [warning-cleanup]: https://github.com/crossterm-rs/crossterm/pull/198
๐ [crossterm_style-cleanup]: https://github.com/crossterm-rs/crossterm/pull/208
๐ [fixed-get-set-terminal-size]: https://github.com/crossterm-rs/crossterm/pull/242
-
v0.10.1
-
v0.10.0 Changes
- ๐ Implemented command API, to have better performance and more control over how and when commands are executed. PR, issue
- ๐ Fixed showing, hiding cursor windows implementation
- โ Removed some of the parsing logic from windows keys to ansi codes to key events PR
- Made terminal size 1-based PR
- โ Added some derive implementation
-
v0.9.6 Changes
June 15, 2019 -
v0.9.5 Changes
May 20, 2019- ๐ Prefetching buffer size for more efficient windows input reads. PR