Commit d9ebf01
committed
Cygwin: console: Fix tcsetattr which was broken sinse cygwin 3.5.5
After the commit 84d77e5 ("Cygwin: console: Disable
cons_master_thread in win32-input-mode") tcsetattr() no longer takes
effect for the console. This occurs because set_input_mode() and
set_output_mode() are now called in bg_check() only when the current
mode is not tty::cygwin. Before this commit, these functions were
always invoked in bg_check(), regardless of whether the current mode
was already tty::cygwin. As a result, the console mode was updated
every time read() or write() was called.
With this patch, set_input_mode() and set_output_mode() are called
in tcsetattr() to make it take effect.
Fixes: 84d77e5 ("Cygwin: console: Disable cons_master_thread in win32-input-mode")
Signed-off-by: Takashi Yano <[email protected]>
(cherry picked from commit 4b5dcf2)1 parent 3336fb8 commit d9ebf01
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2215 | 2215 | | |
2216 | 2216 | | |
2217 | 2217 | | |
| 2218 | + | |
| 2219 | + | |
2218 | 2220 | | |
2219 | 2221 | | |
2220 | 2222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
0 commit comments