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

Method handle_forward

src/sys/prompt.rs:343–352  ·  view source on GitHub ↗

Handle forward key

(&mut self)

Source from the content-addressed store, hash-verified

341
342 // Handle forward key
343 fn handle_forward(&mut self)
344 {
345 self.compupdate();
346 self.histupdate();
347 if self.cur < self.offset + self.ln.len()
348 {
349 print!("\x1b[1C");
350 self.cur += 1;
351 }
352 }
353
354
355 // Handle printable keys

Callers 1

csi_dispatchMethod · 0.80

Calls 3

compupdateMethod · 0.80
histupdateMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected