Implement terminal send text

This commit is contained in:
Daniel Imms 2016-09-10 20:20:39 -07:00
parent a90e51c2a9
commit b0bf6fcee8

View file

@ -188,7 +188,13 @@ export class TerminalInstance implements ITerminalInstance {
}
public sendText(text: string, addNewLine: boolean): void {
// TODO: Implement
if (addNewLine && text.substr(text.length - os.EOL.length) !== os.EOL) {
text += os.EOL;
}
this.process.send({
event: 'input',
data: text
});
}
public setVisible(visible: boolean): void {