From 9bde73bd4e6ddd101b55de81fcb0b262f10b7a89 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 7 Oct 2022 23:29:50 +0200 Subject: [PATCH] chore: reorganize Program struct --- tea.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tea.go b/tea.go index b9fc96b..0af2091 100644 --- a/tea.go +++ b/tea.go @@ -93,9 +93,8 @@ type Program struct { ctx context.Context - msgs chan Msg - errs chan error - readLoopDone chan struct{} + msgs chan Msg + errs chan error // where to send output, this will usually be os.Stdout. output *termenv.Output @@ -105,9 +104,11 @@ type Program struct { // where to read inputs from, this will usually be os.Stdin. input io.Reader cancelReader cancelreader.CancelReader + readLoopDone chan struct{} console console.Console - altScreenWasActive bool // was the altscreen active before releasing the terminal? + // was the altscreen active before releasing the terminal? + altScreenWasActive bool ignoreSignals bool killc chan bool