Added ability to switch ascii themes by pressing tab

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-17 23:12:35 +01:00
parent 1b75a41cd1
commit f9e4f08363
2 changed files with 21 additions and 4 deletions

View File

@@ -66,6 +66,12 @@ void main() async {
if (bytes.contains(113) || bytes.contains(27)) {
exitCleanly(0);
}
if (bytes.contains(9)) {
rasterizer.activeTheme = AsciiThemes.nextOf(rasterizer.activeTheme);
print("Switched to ${rasterizer.activeTheme.name} theme!");
}
input.handleKey(bytes);
});