mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Fixed launch hints
Fixed launch hints not being printed in no autoconnect mode.
This commit is contained in:
parent
59a537f7dd
commit
065ee51291
1 changed files with 4 additions and 4 deletions
|
|
@ -130,10 +130,6 @@ void wait_for_tty_device(void)
|
||||||
/* Don't wait first time */
|
/* Don't wait first time */
|
||||||
tv.tv_sec = 0;
|
tv.tv_sec = 0;
|
||||||
tv.tv_usec = 1;
|
tv.tv_usec = 1;
|
||||||
|
|
||||||
tio_printf("tio v%s", VERSION);
|
|
||||||
tio_printf("Press ctrl-t + q to quit");
|
|
||||||
|
|
||||||
first = false;
|
first = false;
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
|
|
@ -202,6 +198,10 @@ void configure_stdout(void)
|
||||||
tcsetattr(STDOUT_FILENO, TCSANOW, &new_stdout);
|
tcsetattr(STDOUT_FILENO, TCSANOW, &new_stdout);
|
||||||
tcsetattr(STDOUT_FILENO, TCSAFLUSH, &new_stdout);
|
tcsetattr(STDOUT_FILENO, TCSAFLUSH, &new_stdout);
|
||||||
|
|
||||||
|
/* Print launch hints */
|
||||||
|
tio_printf("tio v%s", VERSION);
|
||||||
|
tio_printf("Press ctrl-t + q to quit");
|
||||||
|
|
||||||
/* Make sure we restore old stdout settings on exit */
|
/* Make sure we restore old stdout settings on exit */
|
||||||
atexit(&restore_stdout);
|
atexit(&restore_stdout);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue