Skip to content

Commit

Permalink
Avoid setting TERM on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
rprichard committed Jun 3, 2016
1 parent c4c347f commit 5e24feb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src-pty/com/jediterm/pty/PtyMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ public class PtyMain extends AbstractTerminalFrame {
public TtyConnector createTtyConnector() {
try {
Map<String, String> envs = Maps.newHashMap(System.getenv());
envs.put("TERM", "xterm");
String[] command = new String[]{"/bin/bash", "--login"};
String[] command;

if (UIUtil.isWindows) {
command = new String[]{"cmd.exe"};
} else {
command = new String[]{"/bin/bash", "--login"};
envs.put("TERM", "xterm");
}

PtyProcess process = PtyProcess.exec(command, envs, null);
Expand Down

0 comments on commit 5e24feb

Please sign in to comment.