mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Make sure we flush output buffer to tty when piping to tio
This commit is contained in:
parent
a0a8dccd51
commit
eadcc7e384
1 changed files with 2 additions and 1 deletions
|
|
@ -1160,7 +1160,8 @@ int tty_connect(void)
|
|||
}
|
||||
else if (bytes_read == 0)
|
||||
{
|
||||
// Reached EOF (when piping to stdin)
|
||||
/* Reached EOF (when piping to stdin) */
|
||||
tty_flush(fd);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue