aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-06-30 17:44:17 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-07-19 04:54:32 +0000
commit38461eef6f3b612277bf48e49b9cc6c3b79e25bb (patch)
treef73114e3853bbd55c717b0555724d353f6839b16 /terminal.h
parentwayland: #ifdef guard code related to wl_shm_release() (diff)
csi: in-band window resize notifications, private mode 2048
This implements https://gist.github.com/rockorager/e695fb2924d36b2bcf1fff4a3704bd83, in-band window resize notifications. When user enables private mode 2048 (in-band resize notifications), *always* send current size, even if the mode is already active. This ensures applications can rely on getting a reply from the terminal.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 926870c1..44a101eb 100644
--- a/terminal.h
+++ b/terminal.h
@@ -541,6 +541,8 @@ struct terminal {
bool app_sync_updates:1;
bool grapheme_shaping:1;
+ bool size_notifications:1;
+
bool sixel_display_mode:1;
bool sixel_private_palette:1;
bool sixel_cursor_right_of_graphics:1;
@@ -800,6 +802,7 @@ struct terminal {
char *cwd;
bool grapheme_shaping;
+ bool size_notifications;
};
struct config;
@@ -946,6 +949,10 @@ void term_osc8_close(struct terminal *term);
bool term_ptmx_pause(struct terminal *term);
bool term_ptmx_resume(struct terminal *term);
+void term_enable_size_notifications(struct terminal *term);
+void term_disable_size_notifications(struct terminal *term);
+void term_send_size_notification(struct terminal *term);
+
static inline void term_reset_grapheme_state(struct terminal *term)
{
#if defined(FOOT_GRAPHEME_CLUSTERING)