aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.rs')
-rw-r--r--src/term.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/term.rs b/src/term.rs
index d2f7c9b..5a9fbd6 100644
--- a/src/term.rs
+++ b/src/term.rs
@@ -26,6 +26,16 @@ impl BufWrite for ClearRowForward {
#[derive(Default, Debug)]
#[must_use = "this struct does nothing unless you call write_buf"]
+pub struct ClearRowBackward;
+
+impl BufWrite for ClearRowBackward {
+ fn write_buf(&self, buf: &mut Vec<u8>) {
+ buf.extend_from_slice(b"\x1b[1K");
+ }
+}
+
+#[derive(Default, Debug)]
+#[must_use = "this struct does nothing unless you call write_buf"]
pub struct CRLF;
impl BufWrite for CRLF {