[PR #214] [MERGED] feat(cli): add option --readonly to CLI #218

Closed
opened 2026-10-02 23:15:05 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/XuehaiPan/nvitop/pull/214
Author: @XuehaiPan
Created: 5/6/2026
Status: ✅ Merged
Merged: 5/6/2026
Merged by: @XuehaiPan

Base: main ← Head: cli-readonly


📝 Commits (1)

  • 1cd9a87 feat(cli): add option --readonly to CLI

📊 Changes

11 files changed (+209 additions, -154 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 README.md (+23 -18)
📝 nvitop/cli.py (+18 -5)
📝 nvitop/tui/library/__init__.py (+9 -1)
📝 nvitop/tui/library/messagebox.py (+54 -2)
📝 nvitop/tui/library/selection.py (+40 -2)
📝 nvitop/tui/screens/help.py (+10 -1)
📝 nvitop/tui/screens/main/__init__.py (+1 -29)
📝 nvitop/tui/screens/main/panels/process.py (+22 -13)
📝 nvitop/tui/screens/treeview.py (+29 -83)
📝 nvitop/tui/tui.py (+2 -0)

📄 Description

Issue Type

  • Improvement/feature implementation

Runtime Environment

  • Operating system and version: [e.g. Ubuntu 20.04 LTS / Windows 10 Build 19043.1110]
  • Terminal emulator and version: [e.g. GNOME Terminal 3.36.2 / Windows Terminal 1.8.1521.0]
  • Python version: [e.g. 3.8.2 / 3.9.6]
  • NVML version (driver version): [e.g. 460.84]
  • nvitop version or commit: [e.g. 0.10.0 / 0.10.1.dev7+ga083321 / main@75ae3c]
  • python-ml-py version: [e.g. 11.450.51]
  • Locale: [e.g. C / C.UTF-8 / en_US.UTF-8]

Description

Add --readonly CLI flag (and equivalent NVITOP_MONITOR_MODE="readonly" env token) for monitor mode that disables all process-mutating shortcuts (Ctrl-c / T / K / I / k)


🔄 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/214 **Author:** [@XuehaiPan](https://github.com/XuehaiPan) **Created:** 5/6/2026 **Status:** ✅ Merged **Merged:** 5/6/2026 **Merged by:** [@XuehaiPan](https://github.com/XuehaiPan) **Base:** `main` ← **Head:** `cli-readonly` --- ### 📝 Commits (1) - [`1cd9a87`](https://github.com/XuehaiPan/nvitop/commit/1cd9a87df40a2d764c7a36658d642ff6628315eb) feat(cli): add option `--readonly` to CLI ### 📊 Changes **11 files changed** (+209 additions, -154 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `README.md` (+23 -18) 📝 `nvitop/cli.py` (+18 -5) 📝 `nvitop/tui/library/__init__.py` (+9 -1) 📝 `nvitop/tui/library/messagebox.py` (+54 -2) 📝 `nvitop/tui/library/selection.py` (+40 -2) 📝 `nvitop/tui/screens/help.py` (+10 -1) 📝 `nvitop/tui/screens/main/__init__.py` (+1 -29) 📝 `nvitop/tui/screens/main/panels/process.py` (+22 -13) 📝 `nvitop/tui/screens/treeview.py` (+29 -83) 📝 `nvitop/tui/tui.py` (+2 -0) </details> ### 📄 Description <!-- Provide a descriptive summary of the changes in the title above --> #### Issue Type <!-- Pick relevant types and delete the rest --> - Improvement/feature implementation #### Runtime Environment <!-- Details of your runtime environment --> - Operating system and version: [e.g. Ubuntu 20.04 LTS / Windows 10 Build 19043.1110] - Terminal emulator and version: [e.g. GNOME Terminal 3.36.2 / Windows Terminal 1.8.1521.0] - Python version: [e.g. `3.8.2` / `3.9.6`] - NVML version (driver version): [e.g. `460.84`] - `nvitop` version or commit: [e.g. `0.10.0` / `0.10.1.dev7+ga083321` / `main@75ae3c`] - `python-ml-py` version: [e.g. `11.450.51`] - Locale: [e.g. `C` / `C.UTF-8` / `en_US.UTF-8`] #### Description <!-- Describe the changes in detail --> Add `--readonly` CLI flag (and equivalent `NVITOP_MONITOR_MODE="readonly"` env token) for monitor mode that disables all process-mutating shortcuts (`Ctrl-c` / `T` / `K` / `I` / `k`) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-10-02 23:15:05 -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#218
No description provided.