upbound / up

The @upbound CLI
Apache License 2.0
49 stars 42 forks source link

`up login` does not respond to Ctrl-C #526

Closed adamwg closed 1 month ago

adamwg commented 1 month ago

What happened?

When I run up login, I get a username prompt; if I don't want to enter a username and press Ctrl-C to kill the process, the ^C literal shows up at the prompt:

% up login
Username: ^C^C^C

The same happens at the Password prompt, but without the ^C literal being echoed.

The only way to get out of up login is to either enter a username and password, or kill it externally.

How can we reproduce it?

Run up login, then attempt to kill the command with Ctrl-C at the username or password prompt.

What environment did it happen in?

zsh in alacritty on Linux