aristocratos / btop

A monitor of resources
Apache License 2.0
19.24k stars 604 forks source link

[BUG] xterm and btop -> no graph and no "Option" #505

Open stevleibelt opened 1 year ago

stevleibelt commented 1 year ago

Read the README.md and search for similar issues before posting a bug report!

Any bug that can be solved by just reading the prerequisites section of the README will likely be ignored.

Describe the bug

I am using arch linux with pure xterm package.

When I start btop, it looks like on the screenshot

It does not matter what I configure for the graph, I never see one.

If I use lxterminal, btop has graphs.

I could not find an idea what xterm is missing. I also could not find any issue fitting to my problem

To Reproduce

Expected behavior

btop shows graps

Screenshots

image

Info (please complete the following information):

# xterm -report-fonts | bat
   1   │ Loaded VTFonts(default)
   2   │     fNorm: fixed
   3   │         all chars:     no
   4   │         default char:  0
   5   │         direction:     0
   6   │         ascent:        11
   7   │         descent:       2
   8   │         first char:    0
   9   │         last char:     255
  10   │         maximum-chars: 256
  11   │         missing-chars: 33
  12   │         present-chars: 223
  13   │         min_byte1:     0
  14   │         max_byte1:     0
  15   │         properties:    22
  16   │         min_bounds:
  17   │             lbearing: 0
  18   │             rbearing: 0
  19   │             width:    6
  20   │             ascent:   -1
  21   │             descent:  -10
  22   │         max_bounds:
  23   │             lbearing: 2
  24   │             rbearing: 6
  25   │             width:    6
  26   │             ascent:   11
  27   │             descent:  2
# and more

Additional context

contents of ~/.config/btop/btop.log

2023/03/02 (21:34:04) | ===> btop++ v.1.2.13
2023/03/02 (21:34:04) | DEBUG: Starting in DEBUG mode!
2023/03/02 (21:34:04) | INFO: Logger set to DEBUG
2023/03/02 (21:34:04) | DEBUG: Using locale de_DE.UTF-8
2023/03/02 (21:34:04) | INFO: Running on /dev/pts/16

(try running btop with --debug flag if btop.log is empty)

GDB Backtrace

If btop++ is crashing at start the following steps could be helpful:

(Extra helpful if compiled with make OPTFLAGS="-O0 -g")

  1. run (linux): gdb btop (macos): lldb btop

  2. r to run, wait for crash and press enter if prompted, CTRL+L to clear screen if needed.

  3. (gdb): thread apply all bt (lldb): bt all to get backtrace for all threads

  4. Copy and paste the backtrace here:

stefanos82 commented 1 year ago

Can you run echo $TERM?

In my case it returns xterm-256color and I get the right output:

image

stevleibelt commented 1 year ago

@stefanos82

echo $TERM
xterm-256color

Totally strange. I am using i3wm with xinit. You re using kde, right?

stefanos82 commented 1 year ago

Nope, I'm using XFCE4.