From 4aea95fa3c28cfcdbfdd41711eee1f7b715f9ac8 Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Sun, 27 Oct 2024 14:29:59 -0700 Subject: [PATCH] Re-instated isatty check --- xs/xs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xs/xs.go b/xs/xs.go index e47c049..6fcff2c 100755 --- a/xs/xs.go +++ b/xs/xs.go @@ -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)