mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
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:
parent
12f20c84e3
commit
93e6efc001
5 changed files with 123 additions and 9 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue