-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quite a failed attempt to move cursor back up for overdrawing…
- Loading branch information
Showing
5 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#[cfg(feature = "crossterm")] | ||
mod _impl { | ||
// pub use crossterm::cursor::MoveToPreviousLine; | ||
pub use crossterm::cursor::MoveUp as MoveToPreviousLine; | ||
} | ||
#[cfg(feature = "crossterm")] | ||
pub use _impl::*; | ||
|
||
#[cfg(feature = "crossterm")] | ||
#[macro_export] | ||
macro_rules! execute { | ||
($writer:expr $(, $command:expr)* $(,)? ) => { | ||
// Queue each command, then flush | ||
$crate::crossterm::queue!($writer $(, $command)*).and_then(|()| { | ||
$writer.flush().map_err($crate::crossterm::ErrorKind::IoError) | ||
}).map_err($crate::crossterm_utils::into_io_error) | ||
} | ||
} | ||
|
||
#[cfg(all(feature = "termion", not(feature = "crossterm")))] | ||
mod _impl { | ||
compile_error!("not implemented"); | ||
} | ||
#[cfg(all(feature = "termion", not(feature = "crossterm")))] | ||
pub use _impl::*; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters