Creating generic term renderer.

This commit is contained in:
2025-10-28 16:48:35 -05:00
parent 358fa9a493
commit b6aab03370
27 changed files with 770 additions and 155 deletions

24
src/platform/tty/inputterm.c Executable file
View File

@@ -0,0 +1,24 @@
/**
* Copyright (c) 2025 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include "term.h"
bool_t inputDown(const uint8_t action) {
return (TERM.inputCurrent & action) != 0;
}
bool_t inputUp(const uint8_t action) {
return (TERM.inputCurrent & action) == 0;
}
bool_t inputWasDown(const uint8_t action) {
return (TERM.inputPrevious & action) != 0;
}
bool_t inputWasUp(const uint8_t action) {
return (TERM.inputPrevious & action) == 0;
}