Ctop::TUI::Draw
Btop-style drawing layout. ┌────────────────────────────────────────────────────────────────────┐ │ CPU ████████████░░░░ 45% MEM ██████████░░░░░ 62% 3.2/8.0 GiB │ │ NET ↓12.5MiB/s ↑2.3MiB/s │ ├────────────────────────────────────────────────────────────────────┤ │ PID NAME CPU% MEM STATE CMD │ │ ═════════════════════════════════════════════════════════════════ │ │ 1234 chromium 12.3% 1.2 GiB Running /usr/bin/chr.. │ └────────────────────────────────────────────────────────────────────┘
Constants
BAR_WIDTH = 12
COL_CMD_X = COL_STATE_X + 8
COL_CPU_X = COL_NAME_X + 20
COL_MEM_X = COL_CPU_X + 9
COL_NAME_X = COL_PID_X + 10
COL_PID_X = MARGIN + 1
Process table columns
COL_STATE_X = COL_MEM_X + 11
HEADER_HEIGHT = 3
MARGIN = 1
Layout constants
PANELS_HEIGHT = 2
Class methods
Draw the process table header with separator.