mirror of https://gogs.blitter.com/RLabs/xs
Re-instated isatty check
This commit is contained in:
parent
8e96e4fb32
commit
4aea95fa3c
4
xs/xs.go
4
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)
|
||||
|
|
Loading…
Reference in New Issue