Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix break line after password input (#1703) #1742

Closed
wants to merge 1 commit into from
Closed

Fix break line after password input (#1703) #1742

wants to merge 1 commit into from

Conversation

paroar
Copy link
Contributor

@paroar paroar commented Nov 28, 2020

Closes #1703

@CLAassistant
Copy link

CLAassistant commented Nov 28, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@na-- na-- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making this PR, however the PasswordField doesn't seem to be the right place to make this change...

See how the ui.Form works, the Field objects don't write things, only the Form does: https://github.com/loadimpact/k6/blob/40979fd751999415e6f00de16ce4fedd22a838aa/ui/form.go#L30-L48

And it has an io.Writer injected, so we certainly should try to avoid using a global fmt.Print() call and use that writer instead (e.g. use fmt.Fprint(w, "\n") instead).

@paroar paroar closed this Nov 30, 2020
@paroar paroar deleted the fix/1703-password-break-line branch November 30, 2020 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

There is no new line after password prompt for login command
3 participants