Add cursor position save/restore

This commit is contained in:
Jeremy Soller 2017-08-02 20:07:37 -06:00 committed by GitHub
parent cd455e8358
commit 18e589b9d9
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@ use raw::CONTROL_SEQUENCE_TIMEOUT;
derive_csi_sequence!("Hide the cursor.", Hide, "?25l");
derive_csi_sequence!("Show the cursor.", Show, "?25h");
derive_csi_sequence!("Restore the cursor.", Restore, "u");
derive_csi_sequence!("Save the cursor.", Save, "s");
/// Goto some position ((1,1)-based).
///
/// # Why one-based?