File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ type State struct {
25
25
termios unix.Termios
26
26
}
27
27
28
- // IsTerminal returns true if the given file descriptor is a terminal.
28
+ // IsTerminal returns whether the given file descriptor is a terminal.
29
29
func IsTerminal (fd int ) bool {
30
30
_ , err := unix .IoctlGetTermios (fd , ioctlReadTermios )
31
31
return err == nil
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import (
21
21
22
22
type State struct {}
23
23
24
- // IsTerminal returns true if the given file descriptor is a terminal.
24
+ // IsTerminal returns whether the given file descriptor is a terminal.
25
25
func IsTerminal (fd int ) bool {
26
26
return false
27
27
}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ type State struct {
17
17
termios unix.Termios
18
18
}
19
19
20
- // IsTerminal returns true if the given file descriptor is a terminal.
20
+ // IsTerminal returns whether the given file descriptor is a terminal.
21
21
func IsTerminal (fd int ) bool {
22
22
_ , err := unix .IoctlGetTermio (fd , unix .TCGETA )
23
23
return err == nil
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ type State struct {
26
26
mode uint32
27
27
}
28
28
29
- // IsTerminal returns true if the given file descriptor is a terminal.
29
+ // IsTerminal returns whether the given file descriptor is a terminal.
30
30
func IsTerminal (fd int ) bool {
31
31
var st uint32
32
32
err := windows .GetConsoleMode (windows .Handle (fd ), & st )
You can’t perform that action at this time.
0 commit comments