mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[fg] Resize terminal after CTRL-Z and fg. Refs #287
This commit is contained in:
parent
f807c611fa
commit
0acfd90225
@ -106,6 +106,8 @@ poll_fg(void *t_)
|
|||||||
r = unblock_itrm();
|
r = unblock_itrm();
|
||||||
if (r == -1) {
|
if (r == -1) {
|
||||||
install_timer(&fg_poll_timer, FG_POLL_TIME, poll_fg, t);
|
install_timer(&fg_poll_timer, FG_POLL_TIME, poll_fg, t);
|
||||||
|
} else {
|
||||||
|
resize_terminal();
|
||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
if (r == -2) {
|
if (r == -2) {
|
||||||
@ -123,7 +125,9 @@ poll_fg(void *t_)
|
|||||||
static void
|
static void
|
||||||
sig_cont(struct terminal *term)
|
sig_cont(struct terminal *term)
|
||||||
{
|
{
|
||||||
if (!unblock_itrm()) resize_terminal();
|
if (!unblock_itrm()) {
|
||||||
|
resize_terminal();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user