mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 21:43:32 +02:00
udpate deps
This commit is contained in:
+4
-5
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user