From 88f4e239a7521112a4db8c7842e3a05db4446cd4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 18 Feb 2026 09:00:35 +0200 Subject: feat: triple-toggle CPU display mode via 1 key; add tooltip, font, hit-test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CPU display now cycles through three states with each press of 1: 0 = CPUModeAverage – aggregate bar only (default) 1 = CPUModeCores – individual core bars + aggregate 2 = CPUModeOff – all CPU bars hidden Config file stores cpumode=N (integer); old showcores=0/1 is read for backward compatibility. CLI flag --showcores replaced by --cpumode. Other improvements landed in this commit: - internal/display: add font.go (text rendering), hittest.go (bar hit testing), tooltip.go (mouse-over tooltip), tooltip_test.go - internal/display: mouse tracking and drawOverlay hook in display.go - internal/display: update build tags to //go:build form - internal/collector: embed remote script via script_embed.go / scriptdata/loadbars-remote.sh - internal/collector: CPULine.Total() changed to value receiver - internal/collector: table test improvements (name field, t.Run) - internal/constants: BytesPerSec consts promoted from var to const - Magefile.go: fix error formatting and install path Co-Authored-By: Claude Sonnet 4.6 --- internal/display/activate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/display/activate.go') diff --git a/internal/display/activate.go b/internal/display/activate.go index b9040d7..ac9b340 100644 --- a/internal/display/activate.go +++ b/internal/display/activate.go @@ -1,4 +1,4 @@ -// +build !darwin +//go:build !darwin package display -- cgit v1.2.3