Implement terminal send text
This commit is contained in:
parent
a90e51c2a9
commit
b0bf6fcee8
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue