@inst/vscode-bin-darwin
Version:
BINARY ONLY - VSCode binary deployment for macOS
46 lines • 1.51 kB
JavaScript
;
/**
* Copyright (c) 2012-2015, Christopher Jeffrey, Peter Sunde (MIT License)
* Copyright (c) 2016, Daniel Imms (MIT License).
*/
Object.defineProperty(exports, "__esModule", { value: true });
var Terminal;
if (process.platform === 'win32') {
Terminal = require('./windowsTerminal').WindowsTerminal;
}
else {
Terminal = require('./unixTerminal').UnixTerminal;
}
/**
* Forks a process as a pseudoterminal.
* @param file The file to launch.
* @param args The file's arguments as argv (string[]) or in a pre-escaped
* CommandLine format (string). Note that the CommandLine option is only
* available on Windows and is expected to be escaped properly.
* @param options The options of the terminal.
* @see CommandLineToArgvW https://msdn.microsoft.com/en-us/library/windows/desktop/bb776391(v=vs.85).aspx
* @see Parsing C++ Comamnd-Line Arguments https://msdn.microsoft.com/en-us/library/17w5ykft.aspx
* @see GetCommandLine https://msdn.microsoft.com/en-us/library/windows/desktop/ms683156.aspx
*/
function spawn(file, args, opt) {
return new Terminal(file, args, opt);
}
exports.spawn = spawn;
;
/** @deprecated */
function fork(file, args, opt) {
return new Terminal(file, args, opt);
}
exports.fork = fork;
;
/** @deprecated */
function createTerminal(file, args, opt) {
return new Terminal(file, args, opt);
}
exports.createTerminal = createTerminal;
;
function open(options) {
return Terminal.open(options);
}
exports.open = open;
//# sourceMappingURL=index.js.map