Added ability to switch ascii themes by pressing tab
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user