Giter Club home page Giter Club logo

Comments (4)

Syllo avatar Syllo commented on May 22, 2024 1

@Iamanorange exactly, the problem lies in the TERM variable being ansi.
Ncurses thinks that the terminal has no support for the characters used for drawing the plot and replaces it with some "equivalent characters" 😆

I already pointed the problem to @boileaum, who fixed it with the good TERM environment.

from nvtop.

Syllo avatar Syllo commented on May 22, 2024

From the characters used in your post, it seems like the program is not using ncursesw.
Can you please check that the return of ldd build/src/nvtop contains libncursesw.

If you updated the repository from a prior version or installed the libncursesw after calling CMake, try deleting the build directory and do a clean build.

Otherwise which terminal emulator are you using and what is the TERM variable value (echo $TERM).

from nvtop.

boileaum avatar boileaum commented on May 22, 2024

ldd returns:

ldd build/src/nvtop
	linux-vdso.so.1 (0x00007ffe7e8e6000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc6577b9000)
	libnvidia-ml.so.1 => /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1 (0x00007fc65716f000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007fc656f40000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fc656d16000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc656925000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fc657d67000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc656706000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc656502000)

so nvtop seems to be actually linked with libncursesw.

TERM contains:

echo $TERM
ansi

from nvtop.

Iamanorange avatar Iamanorange commented on May 22, 2024

vt100
VT100 VT102 VT220 VT320

linux
Linux

ansi
ANSI

scoansi
SCOANSI

Tested on :
Client: Xshell 6 on Win10
Server: Ubuntu 16.04 & Ubuntu 18.04.

The problem is terminal type. ANSI cann't display the plot correctly. Only xterm works in Xshell.

Update: the ldd returns same as boileaum's on my Ubuntu 18.04.

from nvtop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.