Skip to main content

delete_columns

Macro delete_columns 

Source
macro_rules! delete_columns {
    ($n:literal) => { ... };
    ($n:expr) => { ... };
}
Expand description

Delete n columns, moving them from the right.

Equivalent to CSI Pn ' ~.

If used with literal, produces &'static str, otherwise produces String.

§Example

use termal_core::codes;

let mut buf = codes::CLEAR.to_string();

buf += "say hello to line 1\n";
buf += "say greeting line 2\n";
buf += "say no words line 3";
buf += codes::move_left!(15);
buf += codes::delete_columns!(9);

println!("{buf}");

§Result in terminal