Bring the "Press Enter" UI closer to the authentication experience

- "Press Enter" is both bold
- "Enter" is capitalized
- The prompt ends with "..."
This commit is contained in:
Mislav Marohnić 2021-01-21 17:41:55 +01:00 committed by Sam Coe
parent a26fba7800
commit a70b69e359
No known key found for this signature in database
GPG key ID: 8E322C20F811D086

View file

@ -145,7 +145,7 @@ func CommentableInteractiveEditSurvey(cf func() (config.Config, error), io *iost
editorCommand = surveyext.DefaultEditorName()
}
cs := io.ColorScheme()
fmt.Fprintf(io.Out, "Press %s to draft your comment in %s.", cs.Bold("enter"), cs.Bold(editorCommand))
fmt.Fprintf(io.Out, "- %s to draft your comment in %s... ", cs.Bold("Press Enter"), cs.Bold(editorCommand))
_ = waitForEnter(io.In)
return surveyext.Edit(editorCommand, "*.md", "", io.In, io.Out, io.ErrOut, nil)
}