diff options
| author | Jeff Carr <[email protected]> | 2025-02-06 03:28:05 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-06 03:28:05 -0600 |
| commit | 9c548faedacfdfbda09d170c6665fcdb988bd877 (patch) | |
| tree | fc1c122250cecd5188fb1385a2f436eb959024f4 /stdoutShow.go | |
| parent | d2c3db7b58381a919fdf51d2f0a2264c6605ff99 (diff) | |
try to start with STDOUT offscreen
Diffstat (limited to 'stdoutShow.go')
| -rw-r--r-- | stdoutShow.go | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/stdoutShow.go b/stdoutShow.go index 6316aed..dd5a403 100644 --- a/stdoutShow.go +++ b/stdoutShow.go @@ -91,5 +91,32 @@ func makeOutputWidget(g *gocui.Gui, stringFromMouseClick string) *gocui.View { me.stdout.tk.v = v me.stdout.tk.DrawAt(me.stdout.lastW, me.stdout.lastH) + relocateStdoutOffscreen() return v } + +func relocateStdoutOffscreen() { + newW := 10 + newH := 0 - me.stdout.h - 4 + me.stdout.tk.relocateStdout(newW, newH) +} + +func (tk *guiWidget) relocateStdout(w int, h int) { + w0 := w + h0 := h + w1 := w + me.stdout.w + h1 := h + me.stdout.h + + tk.gocuiSize.w0 = w0 + tk.gocuiSize.w1 = w1 + tk.gocuiSize.h0 = h0 + tk.gocuiSize.h1 = h1 + + tk.full.w0 = w0 + tk.full.w1 = w1 + tk.full.h0 = h0 + tk.full.h1 = h1 + + me.baseGui.SetView("msg", w0, h0, w1, h1, 0) + // me.baseGui.SetViewOnBottom("msg") +} |
