Skip to main content

BACKSPACE

Constant BACKSPACE 

Source
pub const BACKSPACE: char = '\x08';
Expand description

Moves the cursor left by one positoin.

Eqiovalent to 0x08, known as BS.

§Example

use termal_core::codes;

let mut buf = String::new();

buf += "Some test";
buf.push(codes::BACKSPACE);
buf.push(codes::BACKSPACE);
buf += "x";

println!("{buf}");

§Result in terminal