From 60ee94b4ca3da011750e51719a8b6e1b3210fe5d Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 18 Sep 2021 09:04:31 -0400 Subject: [PATCH] pump_control_read: return 2 following XTSMGRAPHICS #2174 --- src/input/input.cpp | 2 +- src/lib/in.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input/input.cpp b/src/input/input.cpp index 94122e651..41d3b994d 100644 --- a/src/input/input.cpp +++ b/src/input/input.cpp @@ -198,7 +198,7 @@ void Tick(ncpp::NotCurses* nc, uint64_t sec) { void Ticker(ncpp::NotCurses* nc) { do{ - std::this_thread::sleep_for(std::chrono::milliseconds{1000}); + std::this_thread::sleep_for(std::chrono::milliseconds{100}); const uint64_t sec = (timenow_to_ns() - start) / NANOSECS_IN_SEC; Tick(nc, sec); }while(!done); diff --git a/src/lib/in.c b/src/lib/in.c index 622217944..f5e1d814f 100644 --- a/src/lib/in.c +++ b/src/lib/in.c @@ -1459,6 +1459,7 @@ pump_control_read(inputctx* ictx, unsigned char c){ ictx->numeric = 0; } ictx->state = STATE_NULL; + return 2; }else if(c >= 0x40 && c <= 0x7E){ ictx->state = STATE_NULL; if(c == 'c'){