Working on console interaction...

This commit is contained in:
2021-12-04 14:52:15 +01:00
parent 8f06ad8dab
commit 528261395b
3 changed files with 25 additions and 0 deletions

View File

@@ -3,6 +3,15 @@
int current_editor = 0;
void do_terminal() {
const uint8_t key = whichbtn();
if (key != KEY_UNKNOWN) {
if (key < 30) debugchr(key+61);
else if (key < 39) debugchr(key+19);
else if (key == KEY_0) debugchr(key+9);
else if (key == KEY_RETURN) debug(" ");
else if (key == KEY_SPACE) debugchr(32);
else if (key == KEY_BACKSPACE) debugchr(8);
}
cls(0);
pdebug();
}