Skip to content

Commit

Permalink
Prevent cursor from being hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
apolitis-work authored Nov 12, 2020
1 parent 60b57e7 commit 19661d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions input.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,7 @@ func (i *Input) Prompt(config *PromptConfig) (interface{}, error) {
defer rr.RestoreTermMode()

cursor := i.NewCursor()
cursor.Hide() // hide the cursor
defer cursor.Show() // show the cursor when we're done
cursor.Show() // show the cursor when we're done

// start waiting for input
for {
Expand Down

0 comments on commit 19661d7

Please sign in to comment.