Major code cleanup.

This commit is contained in:
2025-12-10 22:51:19 +00:00
parent 6c57521833
commit 24c5b70af1
13 changed files with 103 additions and 106 deletions

View File

@@ -46,7 +46,7 @@ void capture_mouse(char *buf, KeyEvent *ret) {
}
}
KeyEvent read_key_nonblock() {
KeyEvent read_key() {
KeyEvent ret;
char buf[7];
int n = read_input(buf, sizeof(buf));
@@ -113,11 +113,3 @@ KeyEvent read_key_nonblock() {
}
return ret;
}
KeyEvent read_key() {
while (true) {
KeyEvent ret = read_key_nonblock();
if (ret.key_type != KEY_NONE)
return ret;
}
}