summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorTerminalCursor <tcurse@terminalcursor.xyz>2022-07-11 19:16:01 -0700
committerTerminalCursor <tcurse@terminalcursor.xyz>2022-07-11 19:16:01 -0700
commitfa56461a572f913813d191f9c89f73c38f836c29 (patch)
tree3ebf59ffd98c4aaa62f087e5ed939ddf2cb978fc /src/main.rs
parent690edec0f45cea7a2f255d1f01f891503e0fe455 (diff)
Query modeHEADmaster
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index da78328..74c76f9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -26,6 +26,11 @@ fn main(_handle: Handle, mut system_table: SystemTable<Boot>) -> Status {
let mut gop = GOP::new(&system_table).unwrap();
gop.fill_box(0, 0, 16, 16, 128, 0, 0).unwrap();
+ let mode_iter = Box::new(system_table.stdout().modes());
+ for mode in mode_iter {
+ writeln!(system_table.stdout(), "Mode: {:?}", mode);
+ }
+
#[cfg(not(debug_assertions))]
loop {}
#[allow(unreachable_code)]