From 8b1c53b5e577c7acdc22d411ded939161907b1ce Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 01:50:45 +0100 Subject: Running the TSalis console does not pause simulation. --- TODO.md | 1 - tsalis/src/handler.c | 11 +++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index ebabe4b..c6a087e 100644 --- a/TODO.md +++ b/TODO.md @@ -5,7 +5,6 @@ ## TSALIS UPDATES - Create process cursor selector (on WORLD and PROCESS view) - Better console: - - Console resumes sim after closing - Allow longer input - Allow hex input - Line editing 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 ' ': -- cgit v1.2.1