From b8b8a409ea77f457bbb3490f5282bf9b3ff88c3e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 9 Feb 2025 01:40:57 -0600 Subject: show stdout buffer when it is small --- init.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'init.go') diff --git a/init.go b/init.go index 8b2a7be..4810658 100644 --- a/init.go +++ b/init.go @@ -247,9 +247,13 @@ func refreshGocui() { continue } if time.Since(lastRefresh) > 1000*time.Millisecond { + // artificially pause clock while dragging. + // this is a reminder to make this refresh code smarter + // after the switch to protocol buffers if me.mouse.mouseUp { // log.Info("refresh now on mouseUp") // todo: add logic here to see if the application has changed anything + // me.baseGui.UpdateAsync(testRefresh) // probably don't need this me.baseGui.Update(testRefresh) if me.clock.tk != nil && !me.showHelp { // also double check the gocui view exists -- cgit v1.2.3