Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[comp_ui] Keep track of screen width in GNU readline.
OSH now queries this state, instead of trying to keep track of it ourselves. So OSH behaves like bash and other shells here: - If trap 'echo X' SIGWINCH, then SIGWINCH will interrupt the wait builtin. - Otherwise it is ignored. We take care to only enable the SIGWINCH handler inside call_readline(), when shell code isn't running. When the TAB completion callback is invoked, we do the reverse: we disable our SIGWINCH tracking. So we can lose some resizes, but this is what other shells do. TODO: Test this out a bit more. Addresses #1067.
- Loading branch information
Andy C
committed
Jan 24, 2022
1 parent
3ab4e69
commit b657334
Showing
9 changed files
with
78 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters