extend logic to OSC 12 cursor color

This commit is contained in:
Jörg Breitbart
2021-11-09 13:46:54 +01:00
parent 4be063be0f
commit 896f5a7e4c
6 changed files with 123 additions and 60 deletions
+4 -2
View File
@@ -348,10 +348,11 @@ export interface IWindowOptions {
setWinLines?: boolean;
}
// color events from common, used for OSC 4/10/11
// color events from common, used for OSC 4/10/11/12
export const enum ColorIndex {
FOREGROUND = 256,
BACKGROUND = 257
BACKGROUND = 257,
CURSOR = 258
}
export interface IColorReportRequest {
index: ColorIndex;
@@ -431,6 +432,7 @@ export interface IInputHandler {
/** OSC 4 */ setOrReportIndexedColor(data: string): boolean;
/** OSC 10 */ setOrReportFgColor(data: string): boolean;
/** OSC 11 */ setOrReportBgColor(data: string): boolean;
/** OSC 12 */ setOrReportCursorColor(data: string): boolean;
/** ESC E */ nextLine(): boolean;
/** ESC = */ keypadApplicationMode(): boolean;