summaryrefslogtreecommitdiffstats
path: root/third_party/rust/termion/src/clear.rs
blob: d37f2c6b917da566f78eeabfe1c975c6f1db152f (plain)
1
2
3
4
5
6
7
8
9
//! Clearing the screen.

use std::fmt;

derive_csi_sequence!("Clear the entire screen.", All, "2J");
derive_csi_sequence!("Clear everything after the cursor.", AfterCursor, "J");
derive_csi_sequence!("Clear everything before the cursor.", BeforeCursor, "1J");
derive_csi_sequence!("Clear the current line.", CurrentLine, "2K");
derive_csi_sequence!("Clear from cursor to newline.", UntilNewline, "K");