From e371c157df8ada80a9aa86f2c5f029e4e81b41ca Mon Sep 17 00:00:00 2001 From: Przemyslaw Czarnota Date: Tue, 18 Jun 2024 00:22:22 +0200 Subject: [PATCH] fix KBHit leaving terminal in broken state KBHitManager::shutdown() was not called in ChucK::globalCleanup() and terminal state was not restored after shutting down. Calling it seems to fix the problem. --- src/core/chuck.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/chuck.cpp b/src/core/chuck.cpp index 3f40957f0..7bd1d7ea7 100644 --- a/src/core/chuck.cpp +++ b/src/core/chuck.cpp @@ -58,6 +58,7 @@ #include "util_network.h" #endif +#include "ulib_std.h" #include "util_platforms.h" #include "util_string.h" #include "ugen_stk.h" @@ -1510,7 +1511,7 @@ void ChucK::globalCleanup() #ifndef __DISABLE_KBHIT__ // shutdown kb loop - // KBHitManager::shutdown(); + KBHitManager::shutdown(); #endif // __DISABLE_KBHIT__ // pop