We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdd3c14 commit acec1f3Copy full SHA for acec1f3
cli/connect/console.go
@@ -5,6 +5,7 @@ import (
5
"fmt"
6
"io"
7
"os"
8
+ "os/exec"
9
"path/filepath"
10
"sort"
11
"strings"
@@ -128,6 +129,12 @@ func (console *Console) Run() error {
128
129
130
console.prompt.Run()
131
132
+ // Sets the terminal modes to “sane” values to workaround
133
+ // bug https://github.com/c-bata/go-prompt/issues/228
134
+ sttySane := exec.Command("stty", "sane")
135
+ sttySane.Stdin = os.Stdin
136
+ _ = sttySane.Run()
137
+
138
return nil
139
}
140
0 commit comments