Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make parser stable, remove deprecated APIs #2689

Merged
merged 1 commit into from
Feb 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 2 additions & 22 deletions typings/xterm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@ declare module 'xterm' {
}

/**
* (EXPERIMENTAL) Data type to register a CSI, DCS or ESC callback in the parser
* Data type to register a CSI, DCS or ESC callback in the parser
* in the form:
* ESC I..I F
* CSI Prefix P..P I..I F
Expand Down Expand Up @@ -1052,7 +1052,7 @@ declare module 'xterm' {
}

/**
* (EXPERIMENTAL) Parser interface.
* Allows hooking into the parser for custom handling of escape sequences.
*/
export interface IParser {
/**
Expand All @@ -1069,11 +1069,6 @@ declare module 'xterm' {
*/
registerCsiHandler(id: IFunctionIdentifier, callback: (params: (number | number[])[]) => boolean): IDisposable;

/**
* @deprecated use `registerMarker` instead.
*/
addCsiHandler(id: IFunctionIdentifier, callback: (params: (number | number[])[]) => boolean): IDisposable;

/**
* Adds a handler for DCS escape sequences.
* @param id Specifies the function identifier under which the callback
Expand All @@ -1093,11 +1088,6 @@ declare module 'xterm' {
*/
registerDcsHandler(id: IFunctionIdentifier, callback: (data: string, param: (number | number[])[]) => boolean): IDisposable;

/**
* @deprecated use `registerMarker` instead.
*/
addDcsHandler(id: IFunctionIdentifier, callback: (data: string, param: (number | number[])[]) => boolean): IDisposable;

/**
* Adds a handler for ESC escape sequences.
* @param id Specifies the function identifier under which the callback
Expand All @@ -1111,11 +1101,6 @@ declare module 'xterm' {
*/
registerEscHandler(id: IFunctionIdentifier, handler: () => boolean): IDisposable;

/**
* @deprecated use `registerMarker` instead.
*/
addEscHandler(id: IFunctionIdentifier, handler: () => boolean): IDisposable;

/**
* Adds a handler for OSC escape sequences.
* @param ident The number (first parameter) of the sequence.
Expand All @@ -1133,11 +1118,6 @@ declare module 'xterm' {
* @return An IDisposable you can call to remove this handler.
*/
registerOscHandler(ident: number, callback: (data: string) => boolean): IDisposable;

/**
* @deprecated use `registerMarker` instead.
*/
addOscHandler(ident: number, callback: (data: string) => boolean): IDisposable;
}

/**
Expand Down