summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard/processes.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-24 10:35:13 +0200
committerPaul Buetow <paul@buetow.org>2026-02-24 10:35:13 +0200
commita403ca152b6268eacf2804c2d857ead16af37ef3 (patch)
tree6df1ebaa0e2a68f2dfc6c17b9987ae8fbff3129c /internal/tui/dashboard/processes.go
parent791c7aa9e573e80e90ba37e07c8791f280e74d9a (diff)
tui: address review feedback for dashboard and export
Diffstat (limited to 'internal/tui/dashboard/processes.go')
-rw-r--r--internal/tui/dashboard/processes.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/tui/dashboard/processes.go b/internal/tui/dashboard/processes.go
index d229c10..03a38f1 100644
--- a/internal/tui/dashboard/processes.go
+++ b/internal/tui/dashboard/processes.go
@@ -40,9 +40,10 @@ func renderProcessesWithOffset(snap *statsengine.Snapshot, width, height, offset
)
tbl.SetHeight(syscallTableHeight(height))
tbl.SetWidth(tableWidth(width))
- tbl.SetCursor(clampOffset(offset, len(rows)))
+ cursor := clampOffset(offset, len(rows))
+ tbl.SetCursor(cursor)
- out := tbl.View()
+ out := tbl.View() + fmt.Sprintf("\nRow %d/%d", cursor+1, len(rows))
if flags.Get().PidFilter > 0 {
out += "\n" + "Note: this tab is most useful with All PIDs."
}