Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminal font is left bold & bright white after printing table #8

Open
yanicakj opened this issue Jan 7, 2021 · 0 comments
Open

Terminal font is left bold & bright white after printing table #8

yanicakj opened this issue Jan 7, 2021 · 0 comments

Comments

@yanicakj
Copy link

yanicakj commented Jan 7, 2021

This issue is related to issue with PM2 (Unitech/pm2#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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant