Add threaded input handling

To make tio more responsive to quit and I/O flush key command when main I/O
thread is blocked on output.
This commit is contained in:
Martin Lund 2022-11-24 22:52:28 +01:00
parent 12f20c84e3
commit 93e6efc001
5 changed files with 123 additions and 9 deletions

View file

@ -120,6 +120,12 @@ int main(int argc, char *argv[])
socket_configure();
}
/* Spawn input handling into separate thread */
tty_input_thread_create();
/* Wait for input to be ready */
tty_input_thread_wait_ready();
/* Connect to tty device */
if (option.no_autoconnect)
{