mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 22:03:12 +00:00
Only modify terminal modes after config.fish if we have the terminal
This tried fiddling with the terminal even if fish didn't own it, e.g. in fish -c 'sleep 5' & Fixes #7808.
This commit is contained in:
parent
f204fd147d
commit
013a563ed0
1 changed files with 3 additions and 1 deletions
|
@ -1342,7 +1342,9 @@ void reader_init() {
|
||||||
|
|
||||||
// Set up our fixed terminal modes once,
|
// Set up our fixed terminal modes once,
|
||||||
// so we don't get flow control just because we inherited it.
|
// so we don't get flow control just because we inherited it.
|
||||||
term_donate(/* quiet */ true);
|
if (getpgrp() == tcgetpgrp(STDIN_FILENO)) {
|
||||||
|
term_donate(/* quiet */ true);
|
||||||
|
}
|
||||||
|
|
||||||
// We do this not because we actually need the window size but for its side-effect of correctly
|
// We do this not because we actually need the window size but for its side-effect of correctly
|
||||||
// setting the COLUMNS and LINES env vars.
|
// setting the COLUMNS and LINES env vars.
|
||||||
|
|
Loading…
Reference in a new issue