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 /debugger.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 'debugger.h')
-rw-r--r-- | debugger.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -67,7 +67,7 @@ extern struct process *dbg_attach(pid_t pid, int child); extern void dbg_detach(struct process *proc); extern int dbg_free(struct thread *th); -extern void dbg_sync(struct process *proc); +extern int dbg_sync(struct process *proc); extern int dbg_intr(struct thread *th); extern int dbg_cont(struct thread *th); |