Implement setSelection API

Fixes #1443
This commit is contained in:
Daniel Imms
2019-05-11 23:35:31 -07:00
parent 0fae9bb5a8
commit 6674f05cc8
5 changed files with 25 additions and 0 deletions
+3
View File
@@ -96,6 +96,9 @@ export class Terminal implements ITerminalApi {
public hasSelection(): boolean {
return this._core.hasSelection();
}
public setSelection(column: number, row: number, length: number): void {
this._core.setSelection(column, row, length);
}
public getSelection(): string {
return this._core.getSelection();
}