mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
[GH-ISSUE #3] Rendering issues caused by locale settings #3
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#3
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 @ninjaaron87 on GitHub (Jul 17, 2021).
Original GitHub issue: https://github.com/XuehaiPan/nvitop/issues/3
Runtime Environment
nvitopversion/commit: 0.3.5.6python-ml-pyversion: 11.450.51Current Behavior
nvitopcommand does not work,bashcannot find the command. However,python -m nvitopdoes work. Added/home/user_name/.local/binto enablenvitopcommand to work.nvitopcommand prints as expected, however,nvitop -mcolored graphs and formatting for CPU and MEM aren't showing correctly.side x side comparison "nvitop -m"(left) vs "nvitop("right)

Expected Behavior
nvitopinstall would set up env var so that command works immediately after installnvitopcommand.Possible Solutions
nvitopinstall to check/add env var or ReadMe should note for the end-user to check thisSteps to reproduce
Remove user-added env path, open terminal, and run
nvitopRun
nvitop -morpython3 -m nvitop -m@XuehaiPan commented on GitHub (Jul 20, 2021):
Thanks for the feedback!
For the first issue:
You shoud add the directory of
nvitop's executable in yourPATH, usually~/.local/bin(for installed bypip3 install ...) or/usr/local/bin(for installed bysudo pip3 install ...).For the second issue:
As the screenshot you have shown, the monitor mode of
nvitopdidn't display the box-drawing characters correctly. As Alacritty does support Unicode characters, does your ncurses library support Unicode (pacman -Ql ncurses | grep ncursesw)?nvitopwill set theLC_ALLat startup:b669fa39b1/nvitop/cli.py (L58-L64)Possible solutions:
LC_ALL='C.UTF-8'orLC_ALL='en_US.UTF-8'in your shell profile.nvitop -m -Uto use ASCII characters only.@ninjaaron87 commented on GitHub (Jul 20, 2021):
Thanks! I've added your changes to the env path and set the LC_ALL env var and am able to see visualizations as expected!