mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-10 15:04:03 +09:00
edit.js: can read existing files; change on tty key read that arrow keys are now distinguished from ctrl-S or something
This commit is contained in:
6
assets/disk0/home/keypolltest.js
Normal file
6
assets/disk0/home/keypolltest.js
Normal file
@@ -0,0 +1,6 @@
|
||||
println("Hit Ctrl-C or Ctrl-D to exit");
|
||||
while (true) {
|
||||
let keys = con.poll_keys()
|
||||
println(keys);
|
||||
if (keys[1] == 129 && (keys[0] == 31 || keys[0] == 32)) break;
|
||||
}
|
||||
Reference in New Issue
Block a user