File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ package tea
5
5
6
6
// listenForResize is not available on windows because windows does not
7
7
// implement syscall.SIGWINCH.
8
- func (p * Program ) listenForResize (done chan struct {}) {
8
+ func (p * Program [ T ] ) listenForResize (done chan struct {}) {
9
9
close (done )
10
10
}
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ import (
11
11
"golang.org/x/sys/windows"
12
12
)
13
13
14
- func (p * Program ) initInput () (err error ) {
14
+ func (p * Program [ T ] ) initInput () (err error ) {
15
15
// Save stdin state and enable VT input
16
16
// We also need to enable VT
17
17
// input here.
18
- if f , ok := p .input .(term.File ); ok && term .IsTerminal (f .Fd ()) {
18
+ if f , ok := p .Input .(term.File ); ok && term .IsTerminal (f .Fd ()) {
19
19
p .ttyInput = f
20
20
p .previousTtyInputState , err = term .MakeRaw (p .ttyInput .Fd ())
21
21
if err != nil {
@@ -34,7 +34,7 @@ func (p *Program) initInput() (err error) {
34
34
}
35
35
36
36
// Save output screen buffer state and enable VT processing.
37
- if f , ok := p .output . Writer () .(term.File ); ok && term .IsTerminal (f .Fd ()) {
37
+ if f , ok := p .Output .(term.File ); ok && term .IsTerminal (f .Fd ()) {
38
38
p .ttyOutput = f
39
39
p .previousOutputState , err = term .GetState (f .Fd ())
40
40
if err != nil {
You can’t perform that action at this time.
0 commit comments