mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
Support resizing the Terminal app.
I set it up so that TIOCSWINSZ on a master PTY gets forwarded to the slave. This feels intuitively right. Terminal can then use that to inform the shell or whoever is inside the slave that the window size has changed. TIOCSWINSZ also triggers the generation of a SIGWINCH signal. :^)
This commit is contained in:
parent
0ca3112301
commit
0aaec6b19a
Notes:
sideshowbarker
2024-07-19 15:39:26 +09:00
Author: https://github.com/awesomekling
Commit: 0aaec6b19a
6 changed files with 74 additions and 19 deletions
|
@ -1868,6 +1868,7 @@ void Process::set_default_signal_dispositions()
|
|||
// FIXME: Set up all the right default actions. See signal(7).
|
||||
memset(&m_signal_action_data, 0, sizeof(m_signal_action_data));
|
||||
m_signal_action_data[SIGCHLD].handler_or_sigaction = LinearAddress((dword)SIG_IGN);
|
||||
m_signal_action_data[SIGWINCH].handler_or_sigaction = LinearAddress((dword)SIG_IGN);
|
||||
}
|
||||
|
||||
int Process::sys$sigaction(int signum, const sigaction* act, sigaction* old_act)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue