Skip to content

probe-web / @probe-web/ui / followScheme

Function: followScheme()

ts
function followScheme(term): () => void;

Defined in: packages/ui/src/terminal-theme.ts:35

Give an xterm.js terminal the theme for the page's colour scheme and keep it in step when the scheme changes. Returns a function that stops following the page.

Parameters

ParameterType
term{ options: { theme?: ITheme; }; }
term.options{ theme?: ITheme; }
term.options.theme?ITheme

Returns

() => void