-
Notifications
You must be signed in to change notification settings - Fork 285
Open
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugwindows
Description
if (typeof process.env.ComSpec == "undefined") {
cmd = "bash";
cmdargs = ["-i"]
} else {
cmd = "cmd.exe";
cmdargs = []
}
mypty = pty.spawn( cmd, cmdargs, {
name: 'xterm-256color',
cols: 80,
rows: 25,
env: process.env,
encoding: null
});
if cmd and cmdargs is bash -i, with encoding:null mypty.on("data") returns a Buffer as it should.
but if running on windows and cmd and cmdargs are CMD.EXE then mypty.on("data") returns a STRING!
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugwindows