Expose getSelectionPosition and select APIs instead

This commit is contained in:
Daniel Imms
2019-05-11 23:52:38 -07:00
parent da7c39e526
commit 5bbbbf7348
7 changed files with 71 additions and 21 deletions
+7 -4
View File
@@ -9,7 +9,7 @@ import { IBufferLine, ICellData, IAttributeData } from './core/Types';
import { ICircularList, XtermListener } from './common/Types';
import { Buffer } from './Buffer';
import * as Browser from './common/Platform';
import { ITheme, IDisposable, IMarker, IEvent } from 'xterm';
import { ITheme, IDisposable, IMarker, IEvent, ISelectionPosition } from 'xterm';
import { Terminal } from './Terminal';
import { AttributeData } from './core/buffer/BufferLine';
@@ -80,15 +80,18 @@ export class MockTerminal implements ITerminal {
hasSelection(): boolean {
throw new Error('Method not implemented.');
}
setSelection(column: number, row: number, length: number): void {
throw new Error('Method not implemented.');
}
getSelection(): string {
throw new Error('Method not implemented.');
}
getSelectionPosition(): ISelectionPosition | undefined {
throw new Error('Method not implemented.');
}
clearSelection(): void {
throw new Error('Method not implemented.');
}
select(column: number, row: number, length: number): void {
throw new Error('Method not implemented.');
}
selectAll(): void {
throw new Error('Method not implemented.');
}