In order to deactivate without pulling everything, we need to be able
to take the terminal in and out of VT_PROCESS mode directly; so change
the two functions from static to exported.
do_active_vt_changed (terminal);
}
-static void
+void
ply_terminal_watch_for_vt_changes (ply_terminal_t *terminal)
{
assert (terminal != NULL);
terminal->is_watching_for_vt_changes = true;
}
-static void
+void
ply_terminal_stop_watching_for_vt_changes (ply_terminal_t *terminal)
{
struct vt_mode mode = { 0 };
int ply_terminal_get_vt_number (ply_terminal_t *terminal);
bool ply_terminal_activate_vt (ply_terminal_t *terminal);
+void ply_terminal_watch_for_vt_changes (ply_terminal_t *terminal);
+void ply_terminal_stop_watching_for_vt_changes (ply_terminal_t *terminal);
+
void ply_terminal_watch_for_active_vt_change (ply_terminal_t *terminal,
ply_terminal_active_vt_changed_handler_t active_vt_changed_handler,
void *user_data);