MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / handle_backward

Method handle_backward

src/sys/prompt.rs:276–285  ·  view source on GitHub ↗

Handle backward key

(&mut self)

Source from the content-addressed store, hash-verified

274
275 // Handle backward key
276 fn handle_backward(&mut self)
277 {
278 self.compupdate();
279 self.histupdate();
280 if self.cur > self.offset
281 {
282 print!("\x1b[1D");
283 self.cur -= 1;
284 }
285 }
286
287
288 // Handle delete key

Callers 1

csi_dispatchMethod · 0.80

Calls 2

compupdateMethod · 0.80
histupdateMethod · 0.80

Tested by

no test coverage detected