Skip to content

Commit

Permalink
show the cursor and not hide
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhaditya authored Mar 31, 2021
1 parent c79c4a9 commit b0d1070
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 @@ -150,8 +150,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()

// start waiting for input
for {
Expand Down

0 comments on commit b0d1070

Please sign in to comment.