Skip to content

Commit

Permalink
Wait for select prompt to hide the cursor before doing
Browse files Browse the repository at this point in the history
  • Loading branch information
nhatthm committed Apr 23, 2021
1 parent 252d1ee commit f1c8b20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions select.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,14 @@ func (p *SelectPrompt) ExpectOptions(options ...string) *SelectPrompt {
}

// Do runs the step.
// nolint: errcheck
func (p *SelectPrompt) Do(c Console) error {
if _, err := c.ExpectString(p.message); err != nil {
return err
}

_, _ = c.ExpectString("\x1b[?25l")

return p.steps.Do(c)
}

Expand Down

0 comments on commit f1c8b20

Please sign in to comment.