Skip to content

Add support for manual screen redraw (e.g., Ctrl+L) #394

@cipri-tom

Description

@cipri-tom

Currently, after reattaching to a tmux session running nvtop, the terminal UI is often corrupted — some areas are not redrawn correctly and show stale text from before nvtop was launched.

In similar TUIs (like htop, watch, etc.), this is mitigated in two ways:

  1. SIGWINCH handling: They repaint the entire UI when the terminal is resized or the screen buffer changes (e.g., when reattaching tmux).
  2. Manual redraw trigger: Pressing Ctrl+L causes a full repaint of the UI.

It seems nvtop only handles the first one, but I don't want to do a small resize every time I reconnect to tmux window.

So, can you please support manual redraw, usually bound to Ctrl + L (Clear)? Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions