[@types/blessed] Add top level parseTags() function (#41026)

This commit is contained in:
Nathan Rajlich
2019-12-16 12:13:50 +00:00
committed by Orta
parent e752586b66
commit 7d9e1f792e
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -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({
+1
View File
@@ -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;