Commit c1770e1
Cygwin: console: tty::restore really restores the previous mode
Previously, tty::restore sets the console mode to a predetermined
console mode that is widely common for many non-cygwin console apps.
So, if a non-cygwin app that is started from cygwin process changes
the console mode and executes cygwin sub-process, the console mode
is changed to the predetermined mode rather than being restored the
original mode that is set by the non-cygwin app.
With this patch, the console mode is stored when a cygwin process is
started from non-cygwin app, then tty::restore restores the previous
console mode that is used by the previous non-cygwin app when the
cygwin app exits.
Addresses: msys2/msys2-runtime#268
Fixes: 3312f2d ("Cygwin: console: Redesign mode set strategy on close().")
Reported-by: Eu Pin Tien, Jeremy Drake <[email protected]>
Signed-off-by: Takashi Yano <[email protected]>
Signed-off-by: Eu-Pin Tien <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>1 parent a937131 commit c1770e1
File tree
3 files changed
+32
-26
lines changed- winsup/cygwin
- fhandler
- local_includes
- release
3 files changed
+32
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
807 | 810 | | |
808 | 811 | | |
809 | 812 | | |
| |||
818 | 821 | | |
819 | 822 | | |
820 | 823 | | |
821 | | - | |
822 | 824 | | |
823 | 825 | | |
824 | 826 | | |
825 | | - | |
| 827 | + | |
| 828 | + | |
826 | 829 | | |
827 | 830 | | |
828 | 831 | | |
| |||
846 | 849 | | |
847 | 850 | | |
848 | 851 | | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
849 | 858 | | |
850 | 859 | | |
851 | 860 | | |
| |||
868 | 877 | | |
869 | 878 | | |
870 | 879 | | |
871 | | - | |
872 | 880 | | |
873 | 881 | | |
874 | 882 | | |
| 883 | + | |
| 884 | + | |
875 | 885 | | |
876 | 886 | | |
877 | 887 | | |
| |||
883 | 893 | | |
884 | 894 | | |
885 | 895 | | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
886 | 902 | | |
887 | 903 | | |
888 | 904 | | |
| |||
916 | 932 | | |
917 | 933 | | |
918 | 934 | | |
919 | | - | |
| 935 | + | |
920 | 936 | | |
921 | 937 | | |
922 | 938 | | |
| |||
1978 | 1994 | | |
1979 | 1995 | | |
1980 | 1996 | | |
1981 | | - | |
1982 | | - | |
1983 | | - | |
| 1997 | + | |
| 1998 | + | |
1984 | 1999 | | |
1985 | 2000 | | |
1986 | 2001 | | |
| |||
4687 | 4702 | | |
4688 | 4703 | | |
4689 | 4704 | | |
4690 | | - | |
| 4705 | + | |
4691 | 4706 | | |
4692 | | - | |
4693 | | - | |
4694 | 4707 | | |
4695 | 4708 | | |
4696 | 4709 | | |
4697 | | - | |
4698 | | - | |
4699 | | - | |
4700 | | - | |
4701 | | - | |
4702 | | - | |
4703 | | - | |
4704 | | - | |
4705 | | - | |
4706 | | - | |
4707 | | - | |
4708 | | - | |
4709 | | - | |
4710 | | - | |
4711 | | - | |
| 4710 | + | |
4712 | 4711 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2146 | 2146 | | |
2147 | 2147 | | |
2148 | 2148 | | |
| 2149 | + | |
| 2150 | + | |
2149 | 2151 | | |
2150 | 2152 | | |
2151 | 2153 | | |
| |||
2366 | 2368 | | |
2367 | 2369 | | |
2368 | 2370 | | |
2369 | | - | |
| 2371 | + | |
2370 | 2372 | | |
2371 | 2373 | | |
2372 | 2374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments