Skip to content

Commit

Permalink
Merge pull request #2689 from Tyriar/2607_parser_stable
Browse files Browse the repository at this point in the history
Make parser stable, remove deprecated APIs
  • Loading branch information
Tyriar authored Feb 4, 2020
2 parents b06a88b + b7ae55a commit 06e3528
Showing 1 changed file with 2 additions and 22 deletions.
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

0 comments on commit 06e3528

Please sign in to comment.