chore: reorganize Program struct

This commit is contained in:
Christian Muehlhaeuser 2022-10-07 23:29:50 +02:00
parent fbb00cc71e
commit 9bde73bd4e
1 changed files with 5 additions and 4 deletions

9
tea.go
View File

@ -93,9 +93,8 @@ type Program struct {
ctx context.Context ctx context.Context
msgs chan Msg msgs chan Msg
errs chan error errs chan error
readLoopDone chan struct{}
// where to send output, this will usually be os.Stdout. // where to send output, this will usually be os.Stdout.
output *termenv.Output output *termenv.Output
@ -105,9 +104,11 @@ type Program struct {
// where to read inputs from, this will usually be os.Stdin. // where to read inputs from, this will usually be os.Stdin.
input io.Reader input io.Reader
cancelReader cancelreader.CancelReader cancelReader cancelreader.CancelReader
readLoopDone chan struct{}
console console.Console 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 ignoreSignals bool
killc chan bool killc chan bool