forked from Mirrors/bubbletea
chore: reorganize Program struct
This commit is contained in:
parent
fbb00cc71e
commit
9bde73bd4e
5
tea.go
5
tea.go
|
@ -95,7 +95,6 @@ type Program struct {
|
|||
|
||||
msgs chan Msg
|
||||
errs chan error
|
||||
readLoopDone chan struct{}
|
||||
|
||||
// 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
|
||||
|
|
Loading…
Reference in New Issue