bpytop icon indicating copy to clipboard operation
bpytop copied to clipboard

[BUG] Inability to close while terminal too small

Open jhollowe opened this issue 2 years ago • 0 comments

Describe the bug

When the terminal to small warning is shown, the "q" key can not close the program. If the terminal is enlarge to a sufficient size, it will respond to the "q" key to close. If the "q" key is pressed while too small, once enlarged the program will instantly close.

To Reproduce

  1. run bpytop
  2. shrink terminal to be too small
  3. press "q"
  4. Note the application still running with the warning screen still shown

Expected behavior

Application would immediately close

Screenshots

[If applicable, add screenshots to help explain your problem.]

Info (please complete the following information):

  • bpytop version: 1.0.54
  • psutil version: 5.8.0
  • (Linux) Linux distribution and version: Ubuntu 20.04
  • Terminal used: Windows Terminal
  • Font used:
  • Python version: 3.6.8

Additional context

contents of ~/.config/bpytop/error.log

29/11/21 (15:39:53) | INFO: New instance of bpytop version 1.0.54 started with pid 2080971
29/11/21 (15:39:53) | INFO: Loglevel set to DEBUG
29/11/21 (15:39:53) | DEBUG: Using psutil version 5.8.0
29/11/21 (15:39:53) | DEBUG: CMD: /home/<USER>/.local/bin/bpytop --debug
29/11/21 (15:39:54) | DEBUG: Collect and draw completed in 0.153376 seconds
29/11/21 (15:39:55) | DEBUG: Init completed in 2.471708 seconds
29/11/21 (15:40:00) | INFO: Exiting. Runtime 0:00:08 

jhollowe avatar Nov 29 '21 20:11 jhollowe