Fixed launch hints

Fixed launch hints not being printed in no autoconnect mode.
This commit is contained in:
Martin Lund 2016-05-20 20:19:42 +02:00
parent 59a537f7dd
commit 065ee51291

View file

@ -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);
} }