From 9950d71e894a905e314989bfe1c468514d88fb46 Mon Sep 17 00:00:00 2001 From: nick black Date: Wed, 16 Jun 2021 09:51:48 -0400 Subject: [PATCH] handle weird contour reply to CSI 11 #1780 --- src/lib/input.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/input.c b/src/lib/input.c index dd96374e7..8b63940eb 100644 --- a/src/lib/input.c +++ b/src/lib/input.c @@ -811,6 +811,13 @@ pump_control_read(init_state* inits, unsigned char c){ } break; case STATE_BGSEMI: // drain string + if(c == '\x07'){ // contour sends this at the end for some unknown reason + if(stash_string(inits)){ + return -1; + } + inits->state = STATE_NULL; + break; + } inits->numeric = c; if(ruts_string(inits, STATE_BG1)){ return -1;