Skip to content

Commit

Permalink
[fg] Resize terminal after CTRL-Z and fg. Refs #287
Browse files Browse the repository at this point in the history
(cherry picked from commit 0acfd90)
  • Loading branch information
rkd77 committed Oct 4, 2024
1 parent a5d1064 commit d885a41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/osdep/signals.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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

Expand Down

0 comments on commit d885a41

Please sign in to comment.