cli-tableau icon indicating copy to clipboard operation
cli-tableau copied to clipboard

Terminal font is left bold & bright white after printing table

Open yanicakj opened this issue 5 years ago • 0 comments

This issue is related to issue with PM2 (https://github.com/Unitech/pm2/issues/4369)

After the table is printed to console, it oddly leaves font bold & bright white:

image

Wonder if cli-tableau dev team has any ideas why this could be happening?

Here is the contents of cli-tableau object before printed to console with .toString() :

(suggest copy/paste into some JSONlint tool to read better)

Array { '0': { '\u001b[1m\u001b[36m0\u001b[39m\u001b[22m': [ 'start_mongo', 'default', 'N/A', '\u001b[7m\u001b[1mfork\u001b[22m\u001b[27m', 16765, '54m', 0, '\u001b[32m\u001b[1monline\u001b[22m\u001b[39m', '0%', '1.2mb ', '\u001b[1mjuliauser\u001b[22m', '\u001b[90mdisabled\u001b[39m' ] }, options: { chars: { top: '─', 'top-mid': '┬', 'top-left': '┌', 'top-right': '┐', bottom: '─', 'bottom-mid': '┴', 'bottom-left': '└', 'bottom-right': '┘', left: '│', 'left-mid': '├', mid: '─', 'mid-mid': '┼', right: '│', 'right-mid': '┤', middle: '│' }, truncate: '…', colWidths: [ 5, 16, 13, 9, 9, 10, 8, 6, 11, 10, 10, 10, 10 ], colAligns: [ 'left' ], style: { 'padding-left': 1, 'padding-right': 1, head: [Array], border: [Array], compact: true }, head: [ 'id', 'name', 'namespace', 'version', 'mode', 'pid', 'uptime', '↺', 'status', 'cpu', 'mem', 'user', 'watching' ] }, length: 1 }

Also here is contents of options.style.head & options.style.border:

options.style.head: [ 'cyan', 'bold' ]

options.style.border: [ 'grey' ]

Please let me know if anything comes to mind! Thank you!

yanicakj avatar Jan 07 '21 23:01 yanicakj