From d885a41b910d400affa4bc1e9375af7b8c179518 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Wed, 6 Mar 2024 11:06:39 +0100 Subject: [PATCH] [fg] Resize terminal after CTRL-Z and fg. Refs #287 (cherry picked from commit 0acfd90225be1a797c31d5ed3c6a214dc710ea3c) --- src/osdep/signals.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/osdep/signals.c b/src/osdep/signals.c index 848e67945..bb9c3aa0f 100644 --- a/src/osdep/signals.c +++ b/src/osdep/signals.c @@ -106,6 +106,8 @@ poll_fg(void *t_) r = unblock_itrm(); if (r == -1) { install_timer(&fg_poll_timer, FG_POLL_TIME, poll_fg, t); + } else { + resize_terminal(); } #if 0 if (r == -2) { @@ -123,7 +125,9 @@ poll_fg(void *t_) static void sig_cont(struct terminal *term) { - if (!unblock_itrm()) resize_terminal(); + if (!unblock_itrm()) { + resize_terminal(); + } } #endif