0.21 (#596)
This commit is contained in:
parent
91564b5868
commit
f909b3db95
@ -1,3 +1,8 @@
|
|||||||
|
# Version 0.21
|
||||||
|
- Expose `is_raw` function.
|
||||||
|
- Add 'purge' option on unix system, this clears the entire screen buffer.
|
||||||
|
- Improve serialisation for color enum values.
|
||||||
|
|
||||||
# Version 0.20
|
# Version 0.20
|
||||||
- Update from signal-hook with 'mio-feature flag' to signal-hook-mio 0.2.1.
|
- Update from signal-hook with 'mio-feature flag' to signal-hook-mio 0.2.1.
|
||||||
- Manually implements Eq, PartialEq and Hash for KeyEvent improving equality checks and hash calculation.
|
- Manually implements Eq, PartialEq and Hash for KeyEvent improving equality checks and hash calculation.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "crossterm"
|
name = "crossterm"
|
||||||
version = "0.20.0"
|
version = "0.21.0"
|
||||||
authors = ["T. Post"]
|
authors = ["T. Post"]
|
||||||
description = "A crossplatform terminal library for manipulating terminals."
|
description = "A crossplatform terminal library for manipulating terminals."
|
||||||
repository = "https://github.com/crossterm-rs/crossterm"
|
repository = "https://github.com/crossterm-rs/crossterm"
|
||||||
|
@ -43,7 +43,7 @@ impl InternalEventReader {
|
|||||||
F: Filter,
|
F: Filter,
|
||||||
{
|
{
|
||||||
for event in &self.events {
|
for event in &self.events {
|
||||||
if filter.eval(&event) {
|
if filter.eval(event) {
|
||||||
return Ok(true);
|
return Ok(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,6 +74,9 @@ pub(crate) fn clear(clear_type: ClearType) -> Result<()> {
|
|||||||
ClearType::FromCursorUp => clear_before_cursor(pos, buffer_size, current_attribute)?,
|
ClearType::FromCursorUp => clear_before_cursor(pos, buffer_size, current_attribute)?,
|
||||||
ClearType::CurrentLine => clear_current_line(pos, buffer_size, current_attribute)?,
|
ClearType::CurrentLine => clear_current_line(pos, buffer_size, current_attribute)?,
|
||||||
ClearType::UntilNewLine => clear_until_line(pos, buffer_size, current_attribute)?,
|
ClearType::UntilNewLine => clear_until_line(pos, buffer_size, current_attribute)?,
|
||||||
|
_ => {
|
||||||
|
clear_entire_screen(buffer_size, current_attribute)?;
|
||||||
|
} //TODO: make purge flush the entire screen buffer not just the visible window.
|
||||||
};
|
};
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user