-
Notifications
You must be signed in to change notification settings - Fork 490
/
0020-Default-to-disable_pcon.patch
54 lines (42 loc) · 1.93 KB
/
0020-Default-to-disable_pcon.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
From e50db40edfdf5fc38cc30a02a50fd417f58f0094 Mon Sep 17 00:00:00 2001
From: Johannes Schindelin <[email protected]>
Date: Tue, 19 May 2020 13:24:55 +0200
Subject: [PATCH 20/N] Default to `disable_pcon`
The pseudo console support is just a bit too buggy still:
- When typing anything in an interactive Bash session before the prompt
is shown, frequently the keystrokes are then replayed _twice_ when the
prompt is active.
Even worse: it seems that under certain circumstances (e.g. when
spawning `less.exe` from a MINGW process), keystrokes are recorded
while a process is active that wants to consume them but those
recorded keystrokes are then replayed once the process finished (e.g.
the `q` keystroke to exit `less.exe` will then be misinterpreted for
interactive input in the Bash session).
- When `vim` is called from a MINGW process, it seems that the terminal
loses the `onlcr` property after the `vim` process finished, i.e.
subsequently printed lines do not start at the beginning of the line
anymore, but precisely where the previous line ended.
- In `vim`, when selecting text visually (via the `v` keystroke), it
seems that the selection is frequently reset while navigating with the
arrow keys.
There are probably quite a few more rough edges in the pseudo console
feature, unfortunately.
In light of these issues, it makes most sense to disable the pseudo
console support and make it opt-in rather than opt-out.
Signed-off-by: Johannes Schindelin <[email protected]>
---
winsup/cygwin/globals.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/globals.cc b/winsup/cygwin/globals.cc
index 019af4f..275e950 100644
--- a/winsup/cygwin/globals.cc
+++ b/winsup/cygwin/globals.cc
@@ -71,7 +71,7 @@ bool pipe_byte;
bool reset_com;
bool wincmdln;
winsym_t allow_winsymlinks = WSYM_deepcopy;
-bool disable_pcon;
+bool disable_pcon = true;
bool NO_COPY in_forkee;
--
2.31.1