export NORAW=1 to disable raw mode in the client
Upstream-commit: 8c142c612737f45fb97d9ad949b1c3bd42d38c71 Component: engine
This commit is contained in:
@ -160,7 +160,7 @@ func Fatal(err error) {
|
||||
|
||||
func main() {
|
||||
var err error
|
||||
if IsTerminal(0) {
|
||||
if IsTerminal(0) && os.Getenv("NORAW") == "" {
|
||||
oldState, err = MakeRaw(0)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
@ -185,7 +185,7 @@ func main() {
|
||||
if err := <-receive_stdout; err != nil {
|
||||
Fatal(err)
|
||||
}
|
||||
if IsTerminal(0) {
|
||||
if IsTerminal(0) && os.Getenv("NORAW") == "" {
|
||||
Restore(0, oldState)
|
||||
} else {
|
||||
if err := <-send_stdin; err != nil {
|
||||
|
||||
Reference in New Issue
Block a user