diff options
Diffstat (limited to '')
| -rw-r--r-- | rsdos/src/main.rs | 2 | ||||
| -rw-r--r-- | rsdosedit/Cargo.toml | 2 | ||||
| -rw-r--r-- | rsdosedit/src/lib.rs | 15 |
3 files changed, 14 insertions, 5 deletions
diff --git a/rsdos/src/main.rs b/rsdos/src/main.rs index 2ba5d32..a528810 100644 --- a/rsdos/src/main.rs +++ b/rsdos/src/main.rs | |||
| @@ -38,7 +38,7 @@ fn panic(info: &PanicInfo) -> ! { | |||
| 38 | /// The firmware hands us raw pointers (image handle, system table) that | 38 | /// The firmware hands us raw pointers (image handle, system table) that |
| 39 | /// must remain valid for the lifetime of the call — a contract guaranteed | 39 | /// must remain valid for the lifetime of the call — a contract guaranteed |
| 40 | /// by the UEFI loader. | 40 | /// by the UEFI loader. |
| 41 | #[no_mangle] | 41 | #[unsafe(no_mangle)] |
| 42 | pub unsafe extern "efiapi" fn efi_main(image_handle: Handle, system_table: *mut SystemTable) -> ! { | 42 | pub unsafe extern "efiapi" fn efi_main(image_handle: Handle, system_table: *mut SystemTable) -> ! { |
| 43 | let st = unsafe { &mut *system_table }; | 43 | let st = unsafe { &mut *system_table }; |
| 44 | let bs = unsafe { &mut *st.boot_services }; | 44 | let bs = unsafe { &mut *st.boot_services }; |
diff --git a/rsdosedit/Cargo.toml b/rsdosedit/Cargo.toml index b271eef..92a8123 100644 --- a/rsdosedit/Cargo.toml +++ b/rsdosedit/Cargo.toml | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | [package] | 1 | [package] |
| 2 | name = "rsdosedit" | 2 | name = "rsdosedit" |
| 3 | version = "0.1.0" | 3 | version = "0.1.0" |
| 4 | edition = "2021" | 4 | edition = "2024" |
| 5 | 5 | ||
| 6 | [lints] | 6 | [lints] |
| 7 | workspace = true | 7 | workspace = true |
diff --git a/rsdosedit/src/lib.rs b/rsdosedit/src/lib.rs index cfb3b0e..8f67514 100644 --- a/rsdosedit/src/lib.rs +++ b/rsdosedit/src/lib.rs | |||
| @@ -191,9 +191,15 @@ impl Editor { | |||
| 191 | 191 | ||
| 192 | let help_lines = [ | 192 | let help_lines = [ |
| 193 | ("", ""), | 193 | ("", ""), |
| 194 | (" \u{2550}", "\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}"), | 194 | ( |
| 195 | " \u{2550}", | ||
| 196 | "\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}", | ||
| 197 | ), | ||
| 195 | (" rsedit", " \u{2014} Keybindings"), | 198 | (" rsedit", " \u{2014} Keybindings"), |
| 196 | (" \u{2550}", "\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}"), | 199 | ( |
| 200 | " \u{2550}", | ||
| 201 | "\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}\u{2550}", | ||
| 202 | ), | ||
| 197 | ("", ""), | 203 | ("", ""), |
| 198 | (" Arrow keys", " Move cursor"), | 204 | (" Arrow keys", " Move cursor"), |
| 199 | (" ^\u{2190} / ^\u{2192}", " Word backward/forward"), | 205 | (" ^\u{2190} / ^\u{2192}", " Word backward/forward"), |
| @@ -208,7 +214,10 @@ impl Editor { | |||
| 208 | (" Tab", " Insert spaces (smart tab)"), | 214 | (" Tab", " Insert spaces (smart tab)"), |
| 209 | (" ^S", " Save file"), | 215 | (" ^S", " Save file"), |
| 210 | (" ^W", " Search forward"), | 216 | (" ^W", " Search forward"), |
| 211 | (" ^X", " Exit (twice to discard changes)"), | 217 | ( |
| 218 | " ^X", | ||
| 219 | " Exit (twice to discard changes)", | ||
| 220 | ), | ||
| 212 | (" ^Z", " Suspend editor (job control)"), | 221 | (" ^Z", " Suspend editor (job control)"), |
| 213 | (" ^_", " Undo"), | 222 | (" ^_", " Undo"), |
| 214 | (" ^G", " This help"), | 223 | (" ^G", " This help"), |
