forked from sloum/bombadillo
Merge branch 'release2.3.3' into update-release-process-documentation
This commit is contained in:
commit
ad9b5f567e
|
@ -102,6 +102,7 @@ func Getch() rune {
|
|||
|
||||
func GetLine(prefix string) (string, error) {
|
||||
termios.SetLineMode()
|
||||
defer termios.SetCharMode()
|
||||
|
||||
reader := bufio.NewReader(os.Stdin)
|
||||
fmt.Print(prefix)
|
||||
|
@ -110,7 +111,6 @@ func GetLine(prefix string) (string, error) {
|
|||
return "", err
|
||||
}
|
||||
|
||||
termios.SetCharMode()
|
||||
return text[:len(text)-1], nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue