Skip to content

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

@yanicakj

Description

@yanicakj

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions