Implement OSC 4 for list of colors

This commit is contained in:
Slawek Zachcial
2020-12-09 22:30:23 +01:00
parent 2804bfa8b7
commit 7d3f5375a8
4 changed files with 67 additions and 23 deletions
+8 -4
View File
@@ -328,16 +328,20 @@ export interface IWindowOptions {
setWinLines?: boolean;
}
/**
* Event fired for OSC 4 command - to change ANSI color based on its index.
*/
export interface IAnsiColorChangeEvent {
export interface IAnsiColorChangeEventColor {
colorIndex: number;
red: number;
green: number;
blue: number;
}
/**
* Event fired for OSC 4 command - to change ANSI color based on its index.
*/
export interface IAnsiColorChangeEvent {
colors: IAnsiColorChangeEventColor[];
}
/**
* Calls the parser and handles actions generated by the parser.
*/