Re-instated isatty check

This commit is contained in:
Russ Magee 2024-10-27 14:29:59 -07:00
parent 8e96e4fb32
commit 4aea95fa3c
1 changed files with 2 additions and 2 deletions

View File

@ -35,6 +35,7 @@ import (
"blitter.com/go/xs/logger"
"blitter.com/go/xs/spinsult"
"blitter.com/go/xs/xsnet"
"github.com/mattn/go-isatty"
//isatty "github.com/mattn/go-isatty"
)
@ -1030,11 +1031,10 @@ func main() { //nolint: funlen, gocyclo
// === END Login phase
// === Terminal mode adjustment for session
if shellMode {
if true { //isatty.IsTerminal(os.Stdin.Fd()) {
if isatty.IsTerminal(os.Stdin.Fd()) {
oldState, err = xs.MakeRaw(os.Stdin)
if err != nil {
panic(err)