add test for escape tag.

This commit is contained in:
Christopher Jeffrey 2014-04-26 06:40:24 -05:00
parent bef9c09598
commit bfd4e4e611

View File

@ -14,8 +14,9 @@ var box = blessed.box({
width: 60,
wrap: false,
tags: true,
content: fs.readFileSync(__filename, 'utf8')
// content: '{red-bg}' + blessed.escape('{{{{{}{bold}x{/bold}}') + '{/red-bg}'
//content: fs.readFileSync(__filename, 'utf8')
content: '{red-bg}' + blessed.escape('{{{{{}{bold}x{/bold}}') + '{/red-bg}'
+ '\nescaped: {green-fg}{escape}{{{}{{a{bold}b{/bold}c{/escape}{/green-fg}'
});
box.focus();