Move the responsiblity to activate the VT into the text and details
plugins; this not only matches the graphical renderers, but it also
ensures we activate the VT in all possible code paths.
Previously if we fell back to text.so because we couldn't activate
a renderer, this would not activate the VT.
state->terminal = ply_terminal_new (tty_name);
- ply_terminal_activate_vt (state->terminal);
-
keyboard = ply_keyboard_new_for_terminal (state->terminal);
display = ply_text_display_new (state->terminal);
view = view_new (plugin, display);
terminal = ply_text_display_get_terminal (view->display);
- ply_terminal_open (terminal);
+ if (ply_terminal_open (terminal))
+ ply_terminal_activate_vt (terminal);
ply_list_append_data (plugin->views, view);
}
view = view_new (plugin, display);
terminal = ply_text_display_get_terminal (view->display);
- ply_terminal_open (terminal);
+ if (ply_terminal_open (terminal))
+ ply_terminal_activate_vt (terminal);
ply_text_display_set_draw_handler (view->display,
(ply_text_display_draw_handler_t)