Make _parseAnsiColorChange available for tests in TestInputHandler

This commit is contained in:
Slawek Zachcial
2021-01-09 14:30:24 +01:00
parent 7d3f5375a8
commit 5c33e4008d
2 changed files with 10 additions and 15 deletions
+1 -1
View File
@@ -2714,7 +2714,7 @@ export class InputHandler extends Disposable implements IInputHandler {
this._iconName = data;
}
private _parseAnsiColorChange(data: string): IAnsiColorChangeEvent | null {
protected _parseAnsiColorChange(data: string): IAnsiColorChangeEvent | null {
const result: IAnsiColorChangeEvent = { colors: [] };
// example data: 5;rgb:aa/bb/cc
const regex = /(\d+);rgb:([0-9a-f]{2})\/([0-9a-f]{2})\/([0-9a-f]{2})/gi;