bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: With DEBUG trap, resizing window crashes script


From: L A Walsh
Subject: Re: With DEBUG trap, resizing window crashes script
Date: Thu, 25 May 2023 04:14:42 -0700
User-agent: Thunderbird

On 2023/05/10 13:13, Eduardo Bustamante wrote:
If you wish for the current shell to continue running after a terminal
resize, then set the signal disposition for SIGWINCH to ignore.

---
You can also display the new size:

alias my=declare
showsize () {\
 my s=$(stty size); s="(${s// /x})"  ;\
 printf "%s" "$s${s//?/$'\b'}"       ;\
}
trap showsize SIGWINCH




reply via email to

[Prev in Thread] Current Thread [Next in Thread]