diff --git a/src/lib/direct.c b/src/lib/direct.c index 179174568..65d55e28a 100644 --- a/src/lib/direct.c +++ b/src/lib/direct.c @@ -857,6 +857,9 @@ ncdirect_stop_minimal(void* vnc){ ret |= tcsetattr(nc->tcache.ttyfd, TCSANOW, nc->tcache.tpreserved); } ret |= ncdirect_flush(nc); +#ifndef __MINGW64__ + del_curterm(cur_term); +#endif return ret; }