udpate deps

This commit is contained in:
Cory Bennett
2018-07-28 16:29:51 -07:00
parent 07ba74b34a
commit d16bcc2f51
237 changed files with 32346 additions and 10808 deletions
+4 -5
View File
@@ -1,10 +1,7 @@
package survey
import (
"os"
"gopkg.in/AlecAivazis/survey.v1/core"
"gopkg.in/AlecAivazis/survey.v1/terminal"
)
/*
@@ -53,10 +50,12 @@ func (i *Input) Prompt() (interface{}, error) {
}
// start reading runes from the standard in
rr := terminal.NewRuneReader(os.Stdin)
rr := i.NewRuneReader()
rr.SetTermMode()
defer rr.RestoreTermMode()
cursor := i.NewCursor()
line := []rune{}
// get the next line
for {
@@ -65,7 +64,7 @@ func (i *Input) Prompt() (interface{}, error) {
return string(line), err
}
// terminal will echo the \n so we need to jump back up one row
terminal.CursorPreviousLine(1)
cursor.PreviousLine(1)
if string(line) == string(core.HelpInputRune) && i.Help != "" {
err = i.Render(