feat(display): windows: full-screen, F1 cycles, OS bar (names, front, user); canvas-only (display-owned buffers, 4 max, reused); launchers OPEN (pm per app, terminal own), window caps minted by display; FORGET on launcher death via init courier; raster crate (font, chunked text); F-keys in input; terminal+snake on canvas; REDRAW gone
This commit is contained in:
@@ -53,6 +53,7 @@ fn encode_key(key: Key) -> (usize, usize) {
|
||||
Key::Backspace => (7, 0),
|
||||
Key::Tab => (8, 0),
|
||||
Key::Char(c) => (9, c as usize),
|
||||
Key::Function(n) => (types::input::event::FUNCTION_KEY, n as usize),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -68,6 +69,7 @@ fn decode_key(kind: usize, data: usize) -> Option<Key> {
|
||||
7 => Some(Key::Backspace),
|
||||
8 => Some(Key::Tab),
|
||||
9 => Some(Key::Char(data as u8)),
|
||||
types::input::event::FUNCTION_KEY => Some(Key::Function(data as u8)),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user