aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index 374d4371..3fa813a5 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2110,6 +2110,7 @@ term_reset(struct terminal *term, bool hard)
term->insert_mode = false;
term->bracketed_paste = false;
term->focus_events = false;
+ term->visibility_reports = false;
term->num_lock_modifier = true;
term->bell_action_enabled = true;
term->mouse_tracking = MOUSE_NONE;
@@ -3316,6 +3317,14 @@ term_visual_focus_out(struct terminal *term)
}
void
+term_send_visibility_report(struct terminal *term)
+{
+ term_to_slave(
+ term,
+ !term->window->is_suspended ? "\033[?999;1n" : "\033[?999;2n", 9);
+}
+
+void
term_kbd_focus_in(struct terminal *term)
{
if (term->kbd_focus)