mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fixed not being able to quit
When gotty was waiting for a device to appear it was impossible to quit using the ctrl-g ctrl-q sequence. This is now fixed.
This commit is contained in:
parent
57beed2e34
commit
6e2582787c
4 changed files with 57 additions and 13 deletions
|
|
@ -34,6 +34,9 @@ int main(int argc, char *argv[])
|
|||
/* Configure output terminal */
|
||||
configure_stdout();
|
||||
|
||||
/* Restore output terminal on exit */
|
||||
atexit(&restore_stdout);
|
||||
|
||||
/* Connect to tty device */
|
||||
if (option.no_autoconnect)
|
||||
status = connect_tty();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue