mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
export NORAW=1 to disable raw mode in the client
This commit is contained in:
parent
f8f9285cca
commit
8c142c6127
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue