mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Update README
This commit is contained in:
parent
10199f6053
commit
0a22142957
3 changed files with 16 additions and 7 deletions
10
src/main.c
10
src/main.c
|
|
@ -60,10 +60,16 @@ int main(int argc, char *argv[])
|
|||
tty_configure();
|
||||
|
||||
/* Configure input terminal */
|
||||
stdin_configure();
|
||||
if (isatty(fileno(stdin)))
|
||||
{
|
||||
stdin_configure();
|
||||
}
|
||||
|
||||
/* Configure output terminal */
|
||||
stdout_configure();
|
||||
if (isatty(fileno(stdout)))
|
||||
{
|
||||
stdout_configure();
|
||||
}
|
||||
|
||||
/* Add log exit handler */
|
||||
atexit(&log_exit);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue