diff options
| author | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-07 09:49:49 +0000 |
|---|---|---|
| committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-01-07 09:49:49 +0000 |
| commit | 0858341b7f181e991c36b83a0b2a6a09b31ba7d2 (patch) | |
| tree | cb1a579b46c3b79897e2036c9ffa231e84bd78e9 /src | |
| parent | Parse bytes into keys with Termion (diff) | |
| download | sl0ppij-0858341b7f181e991c36b83a0b2a6a09b31ba7d2.tar.gz sl0ppij-0858341b7f181e991c36b83a0b2a6a09b31ba7d2.tar.xz sl0ppij-0858341b7f181e991c36b83a0b2a6a09b31ba7d2.zip | |
Loop through input keys
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 1cbfac45..0b0c853d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -467,7 +467,11 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: Opt) { let (instance, wasi_env) = plugin_map.get(&pid).unwrap(); let handle_key = instance.exports.get_function("handle_key").unwrap(); - dbg!(input_bytes.keys().collect::<Vec<_>>()); + for key in input_bytes.keys() { + if let Ok(key) = key { + dbg!(key); + } + } } PluginInstruction::Quit => break, i => panic!("Yo, dawg, nice job calling the wasm thread!\n {:?} is defo not implemented yet...", i), |
