diff options
author | Malfurious <m@lfurio.us> | 2024-05-07 04:42:24 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2024-05-08 05:57:59 -0400 |
commit | 27bb9ccc06b715ea8f76c269e8bc2fab03110155 (patch) | |
tree | cc159f7474a1043ec733088326dcdeaec2623b9e /console.h | |
parent | 635cfa9d02cff374b1e8cff1493aef178f73cfab (diff) | |
download | misplays-27bb9ccc06b715ea8f76c269e8bc2fab03110155.tar.gz misplays-27bb9ccc06b715ea8f76c269e8bc2fab03110155.zip |
Previously, the test UI logic would constantly regenerate and print the
screen's contents every iteration of the main processing loop to naively
ensure that changes to the underlying system were reflected immediately.
Sometimes, this would result in a screen flicker due to the rapid
clearing and printing.
This makes the UI a bit smarter about when refreshes occur, by
monitoring activity results from the debugger and console modules in
addition to user input. This should improve the screen flicker
performance.
This also addresses an issue selecting text on the screen, which was
previously not possible due to the rapid refreshing as well.
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'console.h')
-rw-r--r-- | console.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -11,7 +11,7 @@ extern int console_init(struct console *cons); extern int console_deinit(struct console *cons); extern void console_enter(struct console *cons, PANEL *pan); extern void console_leave(struct console *cons, PANEL *pan); -extern void console_update(struct console *cons, PANEL *pan); +extern int console_update(struct console *cons, PANEL *pan); extern void console_input(struct console *cons, int ch); extern int console_configslave(struct console *cons); |