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

Method execute

src/sys/prompt.rs:205–218  ·  view source on GitHub ↗

Execute

(&mut self, b: u8)

Source from the content-addressed store, hash-verified

203
204 // Execute
205 fn execute(&mut self, b: u8)
206 {
207 let c = b as char;
208 match c
209 {
210 // Backspace
211 '\x08' => self.handle_backspace(),
212
213 // Tab
214 '\t' => self.handle_tab(),
215
216 _ => {},
217 }
218 }
219
220
221 // Print

Callers

nothing calls this directly

Calls 2

handle_backspaceMethod · 0.80
handle_tabMethod · 0.80

Tested by

no test coverage detected