Simplify terminal interfaces

Fixes #4663
This commit is contained in:
Daniel Imms
2023-08-15 07:49:31 -07:00
parent f69f803f0f
commit 9f3be5e28d
5 changed files with 5 additions and 6 deletions
+1 -2
View File
@@ -13,7 +13,7 @@ import { IFunctionIdentifier, IParams } from 'common/parser/Types';
/**
* A portion of the public API that are implemented identially internally and simply passed through.
*/
type InternalPassthroughApis = Omit<ITerminalApi, 'buffer' | 'parser' | 'unicode' | 'modes' | 'registerMarker' | 'writeln' | 'loadAddon'>;
type InternalPassthroughApis = Omit<ITerminalApi, 'buffer' | 'parser' | 'unicode' | 'modes' | 'writeln' | 'loadAddon'>;
export interface ITerminal extends InternalPassthroughApis, ICoreTerminal {
screenElement: HTMLElement | undefined;
@@ -30,7 +30,6 @@ export interface ITerminal extends InternalPassthroughApis, ICoreTerminal {
onWillOpen: IEvent<HTMLElement>;
cancel(ev: Event, force?: boolean): boolean | void;
addMarker(cursorYOffset: number): IMarker;
}
export type CustomKeyEventHandler = (event: KeyboardEvent) => boolean;