From f18889bf674e574a3ac1315ed7bbd56bf638e6c5 Mon Sep 17 00:00:00 2001 From: David Calavera Date: Sat, 3 Aug 2013 21:30:07 -0700 Subject: [PATCH] Print a new line after getting the password from stdin. --- commands.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands.go b/commands.go index ecd9c6315..b58a2e360 100644 --- a/commands.go +++ b/commands.go @@ -301,6 +301,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error { term.DisableEcho(cli.terminalFd, cli.out, oldState) password = readInput(cli.in, cli.out) + fmt.Fprint(cli.out, "\n") term.RestoreTerminal(cli.terminalFd, oldState) @@ -310,7 +311,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error { } if email == "" { - promptDefault("\nEmail", authconfig.Email) + promptDefault("Email", authconfig.Email) email = readInput(cli.in, cli.out) if email == "" { email = authconfig.Email