Initial bg/fg renderer decoration proof of concept

Part of #3770
This commit is contained in:
Daniel Imms
2022-05-09 12:44:51 -07:00
parent 85e0625078
commit 63eb9a4555
8 changed files with 115 additions and 15 deletions
+14 -1
View File
@@ -444,7 +444,8 @@ declare module 'xterm' {
* This will only take effect when {@link IDecorationOptions.overviewRulerOptions}
* were provided initially.
*/
options: Pick<IDecorationOptions, 'overviewRulerOptions'>;
options: Pick<IDecorationOptions, 'overviewRulerOptions'>;
// options: Pick<IDecorationOptions, 'overviewRulerOptions' | 'backgroundColor' | 'foregroundColor'>;
}
@@ -488,6 +489,18 @@ declare module 'xterm' {
*/
readonly height?: number;
/**
* The background color of the cell(s). When 2 decorations both set the foreground color the
* last registered decoration will be used. Only the `#RRGGBB` format is supported.
*/
backgroundColor?: string;
/**
* The foreground color of the cell(s). When 2 decorations both set the foreground color the
* last registered decoration will be used. Only the `#RRGGBB` format is supported.
*/
foregroundColor?: string;
/**
* When defined, renders the decoration in the overview ruler to the right
* of the terminal. {@link ITerminalOptions.overviewRulerWidth} must be set