Simplify interfaces, reduce duplication
This commit is contained in:
@@ -38,10 +38,7 @@ export interface ILinkifierAccessor {
|
|||||||
export interface ITerminal extends PublicTerminal, ILinkifierAccessor, IBufferAccessor, IElementAccessor {
|
export interface ITerminal extends PublicTerminal, ILinkifierAccessor, IBufferAccessor, IElementAccessor {
|
||||||
selectionManager: ISelectionManager;
|
selectionManager: ISelectionManager;
|
||||||
charMeasure: ICharMeasure;
|
charMeasure: ICharMeasure;
|
||||||
textarea: HTMLTextAreaElement;
|
|
||||||
renderer: IRenderer;
|
renderer: IRenderer;
|
||||||
rows: number;
|
|
||||||
cols: number;
|
|
||||||
browser: IBrowser;
|
browser: IBrowser;
|
||||||
writeBuffer: string[];
|
writeBuffer: string[];
|
||||||
cursorHidden: boolean;
|
cursorHidden: boolean;
|
||||||
@@ -61,10 +58,8 @@ export interface ITerminal extends PublicTerminal, ILinkifierAccessor, IBufferAc
|
|||||||
scrollLines(disp: number, suppressScrollEvent?: boolean): void;
|
scrollLines(disp: number, suppressScrollEvent?: boolean): void;
|
||||||
cancel(ev: Event, force?: boolean): boolean | void;
|
cancel(ev: Event, force?: boolean): boolean | void;
|
||||||
log(text: string): void;
|
log(text: string): void;
|
||||||
reset(): void;
|
|
||||||
showCursor(): void;
|
showCursor(): void;
|
||||||
blankLine(cur?: boolean, isWrapped?: boolean, cols?: number): LineData;
|
blankLine(cur?: boolean, isWrapped?: boolean, cols?: number): LineData;
|
||||||
refresh(start: number, end: number): void;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Vendored
-16
@@ -354,22 +354,6 @@ declare module 'xterm' {
|
|||||||
*/
|
*/
|
||||||
selectAll(): void;
|
selectAll(): void;
|
||||||
|
|
||||||
// /**
|
|
||||||
// * Find the next instance of the term, then scroll to and select it. If it
|
|
||||||
// * doesn't exist, do nothing.
|
|
||||||
// * @param term Tne search term.
|
|
||||||
// * @return Whether a result was found.
|
|
||||||
// */
|
|
||||||
// findNext(term: string): boolean;
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * Find the previous instance of the term, then scroll to and select it. If it
|
|
||||||
// * doesn't exist, do nothing.
|
|
||||||
// * @param term Tne search term.
|
|
||||||
// * @return Whether a result was found.
|
|
||||||
// */
|
|
||||||
// findPrevious(term: string): boolean;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destroys the terminal and detaches it from the DOM.
|
* Destroys the terminal and detaches it from the DOM.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user