Disable terminal emulation mode on Windows
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Wed, 1 Feb 2017 11:34:51 +0000 (12:34 +0100)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Wed, 1 Feb 2017 11:34:51 +0000 (12:34 +0100)
python/src/com/jetbrains/python/run/PythonRunConfigurationForm.java

index fe93e2532a421bde727fba737b5447c20bebcf4c..5f7f36485969849923cbff2240f7e5269481c1ae 100644 (file)
@@ -21,6 +21,7 @@ import com.intellij.openapi.ui.ComponentWithBrowseButton;
 import com.intellij.openapi.ui.TextComponentAccessor;
 import com.intellij.openapi.ui.TextFieldWithBrowseButton;
 import com.intellij.openapi.util.Comparing;
+import com.intellij.openapi.util.SystemInfo;
 import com.intellij.openapi.util.io.FileUtil;
 import com.intellij.openapi.vfs.VirtualFile;
 import com.intellij.ui.PanelWithAnchor;
@@ -77,6 +78,10 @@ public class PythonRunConfigurationForm implements PythonRunConfigurationParams,
 
     myScriptTextField.addActionListener(listener);
 
+    if (SystemInfo.isWindows) {
+      myEmulateTerminalCheckbox.setVisible(false);
+    }
+
     myEmulateTerminalCheckbox.addChangeListener(new ChangeListener() {
       @Override
       public void stateChanged(ChangeEvent e) {