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

Colors do not reset correctly #4369

Open
lewisakura opened this issue Jul 27, 2019 · 9 comments
Open

Colors do not reset correctly #4369

lewisakura opened this issue Jul 27, 2019 · 9 comments

Comments

@lewisakura
Copy link

What's going wrong?

Colors do not reset properly and affects terminal prompt. This should be easily fixed by just putting a reset at the end of the prompt.

How could we reproduce this issue?

Running pm2 list should cause the prompt to go grey and italic.

Supporting information

terminal screenshot showing color reset issue

$ pm2 report

--- PM2 report ----------------------------------------------------------------
Date                 : Sat Jul 27 2019 18:57:33 GMT+0200 (Central European Summer Time)
===============================================================================
--- Daemon -------------------------------------------------
pm2d version         : 3.5.0
node version         : 11.13.0
node path            : /root/.nvm/versions/node/v11.13.0/bin/pm2
argv                 : /root/.nvm/versions/node/v11.13.0/bin/node,/root/.nvm/versions/node/v11.13.0/lib/node_modules/pm2/lib/Daemon.js
argv0                : node
user                 : root
uid                  : 0
gid                  : 0
uptime               : 93707min
===============================================================================
--- CLI ----------------------------------------------------
local pm2            : 3.5.0
node version         : 11.13.0
node path            : /root/.nvm/versions/node/v11.13.0/bin/pm2
argv                 : /root/.nvm/versions/node/v11.13.0/bin/node,/root/.nvm/versions/node/v11.13.0/bin/pm2,report
argv0                : node
user                 : root
uid                  : 0
gid                  : 0
===============================================================================
--- System info --------------------------------------------
arch                 : x64
platform             : linux
type                 : Linux
cpus                 : Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
cpus nb              : 8
freemem              : 25140199424
totalmem             : 31613968384
home                 : /root
===============================================================================
--- PM2 list -----------------------------------------------
┌─────────────────┬────┬─────────┬──────┬───────┬─────────┬─────────┬────────┬───────┬────────────┬──────┬──────────┐
│ App name        │ id │ version │ mode │ pid   │ status  │ restart │ uptime │ cpu   │ mem        │ user │ watching │
├─────────────────┼────┼─────────┼──────┼───────┼─────────┼─────────┼────────┼───────┼────────────┼──────┼──────────┤
│ advancement     │ 12 │ N/A     │ fork │ 9082  │ online  │ 62      │ 9D     │ 0.6%  │ 188.3 MB   │ root │ disabled │
│ bloblogs        │ 7  │ 1.0.0   │ fork │ 16020 │ online  │ 21336   │ 2M     │ 3.7%  │ 269.4 MB   │ root │ disabled │
│ cbr             │ 11 │ N/A     │ fork │ 14644 │ online  │ 0       │ 2M     │ 0.2%  │ 86.1 MB    │ root │ disabled │
│ centurion       │ 5  │ 1.0.0   │ fork │ 14603 │ online  │ 0       │ 2M     │ 0.3%  │ 55.6 MB    │ root │ disabled │
│ cryptobot       │ 8  │ 1.0.0   │ fork │ 15799 │ online  │ 158393  │ 2M     │ 4.5%  │ 257.1 MB   │ root │ disabled │
│ csnet           │ 26 │ 1.0.0   │ fork │ 4256  │ online  │ 2       │ 44h    │ 0.4%  │ 96.8 MB    │ root │ disabled │
│ fedauth         │ 27 │ 1.0.0   │ fork │ 10673 │ online  │ 9       │ 8h     │ 0.6%  │ 87.6 MB    │ root │ disabled │
│ hhtrials        │ 10 │ N/A     │ fork │ 14637 │ online  │ 0       │ 2M     │ 0.3%  │ 85.3 MB    │ root │ disabled │
│ lolibot         │ 4  │ 1.0.0   │ fork │ 10740 │ online  │ 11      │ 7D     │ 4.2%  │ 232.0 MB   │ root │ disabled │
│ pkg             │ 1  │ 1.0.0   │ fork │ 14574 │ online  │ 0       │ 2M     │ 3.9%  │ 197.3 MB   │ root │ disabled │
│ slj             │ 2  │ 1.0.0   │ fork │ 14581 │ online  │ 0       │ 2M     │ 5.1%  │ 195.5 MB   │ root │ disabled │
│ steam           │ 0  │ 1.0.0   │ fork │ 9167  │ online  │ 44      │ 27h    │ 11.8% │ 797.8 MB   │ root │ disabled │
│ suggest         │ 9  │ 1.0.0   │ fork │ 15826 │ online  │ 228385  │ 2M     │ 0.3%  │ 67.3 MB    │ root │ disabled │
│ terry           │ 6  │ 1.0.0   │ fork │ 12813 │ online  │ 249067  │ 17D    │ 0.3%  │ 80.1 MB    │ root │ disabled │
│ verification    │ 25 │ N/A     │ fork │ 10930 │ online  │ 49      │ 5m     │ 1.6%  │ 88.1 MB    │ root │ disabled │
│ welcomersupport │ 3  │ 1.0.0   │ fork │ 14588 │ online  │ 0       │ 2M     │ 0.3%  │ 91.8 MB    │ root │ disabled │
│ wolfy           │ 15 │ 1.2.9   │ fork │ 0     │ stopped │ 0       │ 0      │ 0%    │ 0 B        │ root │ disabled │
└─────────────────┴────┴─────────┴──────┴───────┴─────────┴─────────┴────────┴───────┴────────────┴──────┴──────────┘
===============================================================================
--- Daemon logs --------------------------------------------
/root/.pm2/pm2.log last 20 lines:
PM2        | 2019-07-27T09:46:23: PM2 log: Stopping app:fedauth id:27
PM2        | 2019-07-27T09:46:24: PM2 log: App [fedauth:27] exited with code [0] via signal [SIGINT]
PM2        | 2019-07-27T09:46:24: PM2 log: pid=28559 msg=process killed
PM2        | 2019-07-27T09:46:24: PM2 log: App [fedauth:27] starting in -fork mode-
PM2        | 2019-07-27T09:46:24: PM2 log: App [fedauth:27] online
PM2        | 2019-07-27T10:08:53: PM2 log: Stopping app:fedauth id:27
PM2        | 2019-07-27T10:08:53: PM2 log: App [fedauth:27] exited with code [0] via signal [SIGINT]
PM2        | 2019-07-27T10:08:53: PM2 log: pid=8252 msg=process killed
PM2        | 2019-07-27T10:08:53: PM2 log: App [fedauth:27] starting in -fork mode-
PM2        | 2019-07-27T10:08:53: PM2 log: App [fedauth:27] online
PM2        | 2019-07-27T10:13:35: PM2 log: Stopping app:verification id:25
PM2        | 2019-07-27T10:13:35: PM2 log: App [verification:25] exited with code [0] via signal [SIGINT]
PM2        | 2019-07-27T10:13:35: PM2 log: pid=5222 msg=process killed
PM2        | 2019-07-27T10:13:35: PM2 log: App [verification:25] starting in -fork mode-
PM2        | 2019-07-27T10:13:35: PM2 log: App [verification:25] online
PM2        | 2019-07-27T18:52:03: PM2 log: Stopping app:verification id:25
PM2        | 2019-07-27T18:52:03: PM2 log: App [verification:25] exited with code [0] via signal [SIGINT]
PM2        | 2019-07-27T18:52:03: PM2 log: pid=11310 msg=process killed
PM2        | 2019-07-27T18:52:03: PM2 log: App [verification:25] starting in -fork mode-
PM2        | 2019-07-27T18:52:03: PM2 log: App [verification:25] online

@gibatronic
Copy link

I'm having the same issue. The list command leaves my prompt bright white.
pm2@4.2.3 node@13.8.0 macOS@10.14.6

@stale
Copy link

stale bot commented May 23, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added stale and removed stale labels May 23, 2020
@lewisakura
Copy link
Author

I can also confirm this still happens on 4.4.0.

@stale
Copy link

stale bot commented Jun 23, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 23, 2020
@lewisakura
Copy link
Author

Still an issue.

@stale stale bot removed the stale label Jun 23, 2020
@lewisakura
Copy link
Author

@recapitalverb Honestly, I've lost all hope. I'm writing my own that's compatible in terms of commands but should work better.

@stale
Copy link

stale bot commented Jul 23, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 23, 2020
@lewisakura
Copy link
Author

Still an issue.

@stale stale bot removed the stale label Jul 23, 2020
@yanicakj
Copy link

yanicakj commented Jan 7, 2021

Still experiencing this issue, is there any quick fix available?

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

3 participants