From f05fc336fa480b7823b4f88a4fa966249f5fdeed Mon Sep 17 00:00:00 2001 From: postmannen Date: Wed, 30 Jun 2021 07:19:36 +0200 Subject: [PATCH] added initial page setup --- stew/stew.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stew/stew.go b/stew/stew.go index 7dcbabc..1cebe01 100644 --- a/stew/stew.go +++ b/stew/stew.go @@ -37,7 +37,10 @@ func (s *Stew) Start() error { slide := messageSlide(app) - if err := app.SetRoot(slide, true).EnableMouse(true).Run(); err != nil { + pages := tview.NewPages() + pages.AddPage("message", slide, true, true) + + if err := app.SetRoot(pages, true).EnableMouse(true).Run(); err != nil { panic(err) }