Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 2 of 2) sorted by relevance

/NovaShell/src/shell/
H A Dprinter.rs20 pub cursor: usize, field
32 cursor: 0, in new()
41 self.cursor = 0; in init_before_readline()
52 let len_to_end = self.buf.deref().borrow().len() - self.cursor; in insert()
56 buf.splice(self.cursor..self.cursor, bytes.iter().cloned()); in insert()
61 String::from_utf8(buf[self.cursor..].to_vec()).unwrap() in insert()
68 crossterm::cursor::MoveLeft(len_to_end.try_into().unwrap()) in insert()
72 self.cursor += bytes.len(); in insert()
79 let cursor = self.cursor; in delete() localVariable
83 if cursor + len - 1 < buf_len { in delete()
[all …]
H A Dmod.rs217 if self.printer.cursor > 0 { in handle_funckey()
223 if self.printer.cursor < self.printer.buf.borrow().len() { in handle_funckey()
263 buf.truncate(self.printer.cursor); in readline()