mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[GH-ISSUE #10] How to make the color black and better colorful for nvitop? #8
Labels
No labels
api
bug
bug
cli / tui
dependencies
documentation
documentation
documentation
duplicate
enhancement
exporter
invalid
pull-request
pynvml
question
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/nvitop#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @monajalal on GitHub (Dec 14, 2021).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/10
Thanks a lot for the great repo. Is there a way to make the background black and also the text colors nicer like yours?
@XuehaiPan commented on GitHub (Dec 15, 2021):
@monajalal Hi, I notice that you are using a light color scheme for your terminal. Do you mean only make the background color of
nvitopto black, and change back to light color scheme when you exit and return to the terminal? Or change the whole terminal in dark mode too when you are not runningnvitop.nvitop, light background in terminal when not runningnvitop.nvitop.If the answer is the former one, I think I can add a new option like
--force-darkto invert the foreground and the background color in light terminal. Otherwise, please change your terminal color scheme to a dark one. (See the last section of this comment)nvitopis developed on thecursesmodule, which dynamically links to the systemcurseslibrary (ncurseson Linux andPDCurseson Windows) at runtime. Thencurseslibrary only supports 4-bit colors (black, red, green, yellow, blue, magenta, cyan, white).nvitopdoes not support custom color themes yet. The GUI is rendered with commands like "add stringsat(x, y)with colorred". How red is the text looks is depending on your terminal color scheme:The terminal color scheme defines a mapping from 4-bit colors (black, red, ..., white) to 24-bit colors (the Color Palette above).
nvitopdoesn't support 24-bit true color in RGB tuple (we are usingncurseslibrary though).If you want to change your terminal color scheme, have a look at the following repositories:
I'm using
Tomorrow Night Eightiestheme (Gogh Gallary).NOTE: If you are using
nvitopvia SSH connection on a remote server, you should change the color theme of your local machine, not the remote one.@XuehaiPan commented on GitHub (Dec 17, 2021):
@monajalal Does the above comment resolve your issue? And can we close this now?