diff --git a/types/blessed/blessed-tests.ts b/types/blessed/blessed-tests.ts index 566ee9dec9..f668657602 100644 --- a/types/blessed/blessed-tests.ts +++ b/types/blessed/blessed-tests.ts @@ -778,6 +778,12 @@ setTimeout(() => { screen.render(); }, 3000); +// https://github.com/chjj/blessed#helpers + +blessed.escape('{bold}{/bold}'); +blessed.parseTags('{bold}hi{/bold}'); +blessed.generateTags({ fg: 'red' }, 'red text'); + // https://github.com/chjj/blessed/blob/master/test/program-mouse.js const program = blessed.program({ diff --git a/types/blessed/index.d.ts b/types/blessed/index.d.ts index 44f2471f0d..2d96241058 100644 --- a/types/blessed/index.d.ts +++ b/types/blessed/index.d.ts @@ -3469,6 +3469,7 @@ export function escape(text: string): string; export function stripTags(text: string): string; export function cleanTags(text: string): string; export function generateTags(style: any, text: string): string; +export function parseTags(text: string, screen?: Widgets.Screen): string; export const colors: { match(hexColor: string): string;