AmendHub

Download:

jcs

/

subtext

/

amendments

/

207

session: Add a special case in session_flush for the console


jcs made amendment 207 over 2 years ago
--- session.c Tue Jul 12 11:32:47 2022 +++ session.c Fri Jul 15 22:15:00 2022 @@ -355,6 +355,13 @@ session_flush(struct session *session) uthread_yield(); if (session->ending) return; + + /* + * The console will leave \e in the output buffer if it's the only + * thing in there, so don't loop forever. + */ + if (session->obuflen == 1 && session->obuf[0] == '\33') + return; } }