[PR #31] [MERGED] feat(gui): add 256 color support for bar charts #130

Closed
opened 2026-05-05 03:26:27 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/XuehaiPan/nvitop/pull/31
Author: @XuehaiPan
Created: 8/3/2022
Status: Merged
Merged: 8/5/2022
Merged by: @XuehaiPan

Base: mainHead: 256color


📝 Commits (3)

  • 9d796d8 feat(gui): add 256 color support for bar charts
  • 23f5812 feat(cli): add GPU process context filter
  • 28c58da docs: add screenshot for bar charts

📊 Changes

7 files changed (+202 additions, -70 deletions)

View changed files

📝 README.md (+20 -4)
📝 nvitop/cli.py (+35 -3)
📝 nvitop/gui/library/history.py (+2 -0)
📝 nvitop/gui/library/libcurses.py (+92 -27)
📝 nvitop/gui/screens/main/device.py (+22 -11)
📝 nvitop/gui/screens/main/host.py (+30 -23)
📝 nvitop/gui/screens/main/process.py (+1 -2)

📄 Description

Issue Type

  • Improvement/feature implementation

Runtime Environment

  • Operating system and version: Ubuntu 20.04 LTS
  • Terminal emulator and version: GNOME Terminal 3.36.2
  • Python version: 3.9.13
  • NVML version (driver version): 470.129.06
  • nvitop version or commit: v0.7.1
  • python-ml-py version: 11.450.51
  • Locale: en_US.UTF-8

Description

Use gradient colors for spectrum-like bar charts. This requires the user to set TERM to *-256color (e.g. xterm-256color or tmux-256color).

Motivation and Context

Make nvitop more colorful.

Testing

N/A

Images / Videos

Spectrum


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/XuehaiPan/nvitop/pull/31 **Author:** [@XuehaiPan](https://github.com/XuehaiPan) **Created:** 8/3/2022 **Status:** ✅ Merged **Merged:** 8/5/2022 **Merged by:** [@XuehaiPan](https://github.com/XuehaiPan) **Base:** `main` ← **Head:** `256color` --- ### 📝 Commits (3) - [`9d796d8`](https://github.com/XuehaiPan/nvitop/commit/9d796d889b9d8d3973a1bd71ea7b82f5e9cd7faa) feat(gui): add 256 color support for bar charts - [`23f5812`](https://github.com/XuehaiPan/nvitop/commit/23f581217b055e941637725a09adb0182b0c1590) feat(cli): add GPU process context filter - [`28c58da`](https://github.com/XuehaiPan/nvitop/commit/28c58da1b2cb30d8f1df8f9f7d9d56e52bd494c8) docs: add screenshot for bar charts ### 📊 Changes **7 files changed** (+202 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+20 -4) 📝 `nvitop/cli.py` (+35 -3) 📝 `nvitop/gui/library/history.py` (+2 -0) 📝 `nvitop/gui/library/libcurses.py` (+92 -27) 📝 `nvitop/gui/screens/main/device.py` (+22 -11) 📝 `nvitop/gui/screens/main/host.py` (+30 -23) 📝 `nvitop/gui/screens/main/process.py` (+1 -2) </details> ### 📄 Description #### Issue Type <!-- Pick relevant types and delete the rest --> - Improvement/feature implementation #### Runtime Environment <!-- Details of your runtime environment --> - Operating system and version: Ubuntu 20.04 LTS - Terminal emulator and version: GNOME Terminal 3.36.2 - Python version: `3.9.13` - NVML version (driver version): `470.129.06` - `nvitop` version or commit: `v0.7.1` - `python-ml-py` version: `11.450.51` - Locale: `en_US.UTF-8` #### Description <!-- Describe the changes in detail --> Use gradient colors for spectrum-like bar charts. This requires the user to set `TERM` to `*-256color` (e.g. `xterm-256color` or `tmux-256color`). #### Motivation and Context <!-- Why are these changes required? --> <!-- What problems do these changes solve? --> <!-- Link to relevant issues --> Make `nvitop` more colorful. #### Testing <!-- What tests have been run? --> <!-- How does the changes affect other areas of the codebase? --> N/A #### Images / Videos <!-- Only if relevant --> <!-- Link or embed images and videos of screenshots, sketches etc. --> ![Spectrum](https://user-images.githubusercontent.com/16078332/182555606-8388e5a5-43a9-4990-90d4-46e45ac448a0.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 03:26:27 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/nvitop#130
No description provided.