Change-Id: I069c784a565f658b2bb342bb7f60da426ac94428
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
struct wl_event_loop *loop = NULL;
struct wl_event_source *sigint = NULL;
+ int tty;
+ const char *tty_str;
+
{ /* for gdb attach */
char cc;
int ret;
init_signals();
- if (!pepper_virtual_terminal_setup(0/*FIXME*/))
+ tty_str = getenv("PEPPER_FBDEV_TTY");
+
+ if (!tty_str)
+ tty = 0;
+ else
+ tty = atoi(tty_str);
+
+ if (!pepper_virtual_terminal_setup(tty))
goto cleanup;
compositor = pepper_compositor_create("wayland-0");