diff options
Diffstat (limited to 'compositor/tty.c')
-rw-r--r-- | compositor/tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compositor/tty.c b/compositor/tty.c index 4989500e..5ed921ca 100644 --- a/compositor/tty.c +++ b/compositor/tty.c @@ -103,7 +103,7 @@ tty_create(struct wlsc_compositor *compositor, tty_vt_func_t vt_func, if (tty == NULL) return NULL; - snprintf(filename, sizeof filename, "/dev/tty0"); + snprintf(filename, sizeof filename, "/dev/tty%d", tty_nr); fprintf(stderr, "compositor: using %s\n", filename); memset(tty, 0, sizeof *tty); |