From 1156315bfb6fbf651dc542aa236757f8c7460352 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 8 Oct 2008 13:35:03 -0400 Subject: [PATCH] If console=tty0 is asked for use tty1 tty0 means "use current tty", which is tty1 for us. --- src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.c b/src/main.c index 056d57a4..d18b6795 100644 --- a/src/main.c +++ b/src/main.c @@ -633,6 +633,12 @@ check_for_consoles (state_t *state) remaining_command_line += end - state->console; } + if (strcmp (state->console, "tty0") == 0 || strcmp (state->console, "/dev/tty0") == 0) + { + free (state->console); + state->console = strdup ("tty1"); + } + ply_list_append_data (state->windows, create_window (state, state->console)); } -- 2.47.3