@@ -327,10 +327,10 @@ declare module '@xterm/xterm' {
327327 windowOptions ?: IWindowOptions ;
328328
329329 /**
330- * The width, in pixels, of the canvas for the overview ruler. The overview
331- * ruler will be hidden when not set .
330+ * Controls the visibility and style of the overview ruler which visualizes
331+ * decorations underneath the scroll bar .
332332 */
333- overviewRulerWidth ?: number ;
333+ overviewRuler ?: IOverviewRulerOptions ;
334334 }
335335
336336 /**
@@ -387,9 +387,8 @@ declare module '@xterm/xterm' {
387387 scrollbarSliderActiveBackground ?: string ;
388388 /**
389389 * The border color of the overview ruler. This visually separates the
390- * terminal from the scroll bar when
391- * {@link ITerminalOptions.overviewRulerWidth overviewRulerWidth} is set.
392- * When this is not set it defaults to black (`#000000`).
390+ * terminal from the scroll bar when {@link IOverviewRulerOptions.width} is
391+ * set. When this is not set it defaults to black (`#000000`).
393392 */
394393 overviewRulerBorder ?: string ;
395394 /** ANSI black (eg. `\x1b[30m`) */
@@ -617,8 +616,8 @@ declare module '@xterm/xterm' {
617616
618617 /**
619618 * When defined, renders the decoration in the overview ruler to the right
620- * of the terminal. {@link ITerminalOptions.overviewRulerWidth } must be set
621- * in order to see the overview ruler.
619+ * of the terminal. {@link IOverviewRulerOptions.width } must be set in order
620+ * to see the overview ruler.
622621 * @param color The color of the decoration.
623622 * @param position The position of the decoration.
624623 */
@@ -641,6 +640,28 @@ declare module '@xterm/xterm' {
641640 tooMuchOutput : string ;
642641 }
643642
643+ export interface IOverviewRulerOptions {
644+ /**
645+ * When defined, renders decorations in the overview ruler to the right of
646+ * the terminal. This must be set in order to see the overview ruler.
647+ * @param color The color of the decoration.
648+ * @param position The position of the decoration.
649+ */
650+ width ?: number ;
651+
652+ /**
653+ * Whether to show the top border of the overview ruler, which uses the
654+ * {@link ITheme.overviewRulerBorder} color.
655+ */
656+ showTopBorder ?: boolean ;
657+
658+ /**
659+ * Whether to show the bottom border of the overview ruler, which uses the
660+ * {@link ITheme.overviewRulerBorder} color.
661+ */
662+ showBottomBorder ?: boolean ;
663+ }
664+
644665 /**
645666 * Enable various window manipulation and report features
646667 * (`CSI Ps ; Ps ; Ps t`).
0 commit comments