1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00

Bug 573730: Turn on ConPTY as default PTY in Windows

Change-Id: I27b2719c8fc5853792eba403fd5f5ca116dd7156
This commit is contained in:
Jonah Graham 2022-02-23 14:38:57 -05:00
parent 1c404b050d
commit 4c87198224

View file

@ -292,10 +292,10 @@ public class PTY {
if (!isWindows) {
isConPTY = IS_CONPTY.CONPTY_NO;
}
// Force conpty off by default
// NOTE: to invert the default, the presence of the property must be checked too, not
// just the getBoolean return!
if (!Boolean.getBoolean("org.eclipse.cdt.core.conpty_enabled")) { //$NON-NLS-1$
// Disable ConPTY if the user needs to
boolean conPtyEnabled = Boolean
.parseBoolean(System.getProperty("org.eclipse.cdt.core.conpty_enabled", "true")); //$NON-NLS-1$ //$NON-NLS-2$
if (!conPtyEnabled) {
isConPTY = IS_CONPTY.CONPTY_NO;
}