mirror of https://github.com/gdamore/tcell.git
This commit is contained in:
parent
beb254a9ac
commit
8d48900cd2
|
@ -72,7 +72,6 @@ func (tty *devTty) Start() error {
|
||||||
if tty.f, err = os.OpenFile(tty.dev, os.O_RDWR, 0); err != nil {
|
if tty.f, err = os.OpenFile(tty.dev, os.O_RDWR, 0); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
tty.fd = int(tty.f.Fd())
|
|
||||||
|
|
||||||
if !term.IsTerminal(tty.fd) {
|
if !term.IsTerminal(tty.fd) {
|
||||||
return errors.New("device is not a terminal")
|
return errors.New("device is not a terminal")
|
||||||
|
|
Loading…
Reference in New Issue