From 065ee512915d4e5b96ad8b10cc3cb26259f6fa9c Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Fri, 20 May 2016 20:19:42 +0200 Subject: [PATCH] Fixed launch hints Fixed launch hints not being printed in no autoconnect mode. --- src/tty.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tty.c b/src/tty.c index 63d8eed..d56892f 100644 --- a/src/tty.c +++ b/src/tty.c @@ -130,10 +130,6 @@ void wait_for_tty_device(void) /* Don't wait first time */ tv.tv_sec = 0; tv.tv_usec = 1; - - tio_printf("tio v%s", VERSION); - tio_printf("Press ctrl-t + q to quit"); - first = false; } else { @@ -202,6 +198,10 @@ void configure_stdout(void) tcsetattr(STDOUT_FILENO, TCSANOW, &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 */ atexit(&restore_stdout); }