Skip to content

Commit f1c8b20

Browse files
committed
Wait for select prompt to hide the cursor before doing
1 parent 252d1ee commit f1c8b20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

select.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,14 @@ func (p *SelectPrompt) ExpectOptions(options ...string) *SelectPrompt {
100100
}
101101

102102
// Do runs the step.
103+
// nolint: errcheck
103104
func (p *SelectPrompt) Do(c Console) error {
104105
if _, err := c.ExpectString(p.message); err != nil {
105106
return err
106107
}
107108

109+
_, _ = c.ExpectString("\x1b[?25l")
110+
108111
return p.steps.Do(c)
109112
}
110113

0 commit comments

Comments
 (0)