From 75014f4b284d3e88266c1ae319ee9bbdb86d3ad2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 3 Mar 2025 08:31:21 -0600 Subject: define a background widget more properly --- stdoutShow.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'stdoutShow.go') diff --git a/stdoutShow.go b/stdoutShow.go index 4bbf59a..fd71efc 100644 --- a/stdoutShow.go +++ b/stdoutShow.go @@ -115,8 +115,10 @@ func relocateStdoutOffscreen() { if me.stdout.tk == nil { return } - log.CaptureMode(me.stdout.tk) - // log.Log(ERROR, "setting log.CaptureMode(tk.v) in relocateStdoutOffscreen()") + if !me.stdout.disable { + log.Info("Using gocui STDOUT") + log.CaptureMode(me.stdout.tk) + } newW := 10 newH := 0 - me.stdout.h - 4 me.stdout.tk.relocateStdout(newW, newH) -- cgit v1.2.3