mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 10:12:17 +02:00
Drop another dependency
This commit is contained in:
@@ -19,6 +19,12 @@ const (
|
||||
TCSAFLUSH = 2
|
||||
)
|
||||
|
||||
func IsTerminal(fd uintptr) bool {
|
||||
var t unix.Termios
|
||||
err := Tcgetattr(int(fd), &t)
|
||||
return err == nil
|
||||
}
|
||||
|
||||
type Term struct {
|
||||
name string
|
||||
fd int
|
||||
|
||||
Reference in New Issue
Block a user