aboutsummaryrefslogtreecommitdiff
path: root/tsalis
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 01:50:45 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 01:50:45 +0100
commit8b1c53b5e577c7acdc22d411ded939161907b1ce (patch)
treec5f7adf74d6c13046f06f69493cb9323f1c0edbc /tsalis
parentf915994d3acfded0cdef13a889b94d6c478c9460 (diff)
Running the TSalis console does not pause simulation.HEADmaster
Diffstat (limited to 'tsalis')
-rw-r--r--tsalis/src/handler.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/tsalis/src/handler.c b/tsalis/src/handler.c
index b1dae89..acce333 100644
--- a/tsalis/src/handler.c
+++ b/tsalis/src/handler.c
@@ -277,10 +277,17 @@ tsh_handleEvent(int event)
break;
case 'c':
- g_running = SFALSE;
- nodelay(stdscr, SFALSE);
+ if (g_running) {
+ nodelay(stdscr, SFALSE);
+ }
+
tsp_printData();
runConsole();
+
+ if (g_running) {
+ nodelay(stdscr, STRUE);
+ }
+
break;
case ' ':