remove IParams from public API

This commit is contained in:
Jörg Breitbart
2019-07-02 20:41:21 +02:00
parent 357faa71df
commit f276150ce4
2 changed files with 8 additions and 22 deletions
+4 -19
View File
@@ -494,12 +494,14 @@ declare module 'xterm' {
* final character (e.g "m" for SGR) of the CSI sequence.
* @param callback The function to handle the escape sequence. The callback
* is called with the numerical params, as well as the special characters
* (e.g. "$" for DECSCPP). Return true if the sequence was handled; false if
* (e.g. "$" for DECSCPP). If the sequence has subparams the array will
* contain subarrays with the their numercial values.
* Return true if the sequence was handled; false if
* we should try a previous handler (set by addCsiHandler or setCsiHandler).
* The most recently-added handler is tried first.
* @return An IDisposable you can call to remove this handler.
*/
addCsiHandler(flag: string, callback: (params: IParams, collect: string) => boolean): IDisposable;
addCsiHandler(flag: string, callback: (params: (number | number[])[], collect: string) => boolean): IDisposable;
/**
* (EXPERIMENTAL) Adds a handler for OSC escape sequences.
@@ -931,21 +933,4 @@ declare module 'xterm' {
*/
readonly width: number;
}
interface IParams {
/** from ctor */
readonly maxLength: number;
readonly maxSubParamsLength: number;
/** param values and its length */
readonly params: Int32Array;
readonly length: number;
/** exported methods */
clone(): IParams;
toArray(): (number | number[])[];
hasSubParams(idx: number): boolean;
getSubParams(idx: number): Int32Array | null;
getSubParamsAll(): {[idx: number]: Int32Array};
}
}