mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 20:13:32 +01:00
Implement terminal send text
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user