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

Cannot type anything after Ctrl-C #2192

Open
sryze opened this issue Jan 2, 2022 · 7 comments
Open

Cannot type anything after Ctrl-C #2192

sryze opened this issue Jan 2, 2022 · 7 comments

Comments

@sryze
Copy link
Contributor

sryze commented Jan 2, 2022

After you interrupt a command with Ctrl-C in Bash, you can't see what you type into the terminal - it won't display your input. But if you hit Enter, the commands are executed.

This only happens to me when using Bash with Powerline (inside tmux).

OS: Ubuntu 21.10

@sahilrajput03
Copy link

try typing reset in your teminal. Source: https://superuser.com/a/237405

@sryze
Copy link
Contributor Author

sryze commented Oct 29, 2022

I can confirm that typing reset does help in this situation.
Thanks for the tip @sahilrajput03.

@sahilrajput03
Copy link

I wish there could be a better solution for this instead of having to reset the bash every time it happens.

@sahilrajput03
Copy link

And its not related to powerline, I am using kitty terminal and it happens with this as well.

Earlier I was using xfce-terminal and it used to happen with that as well.

@corn-flake
Copy link

I wonder if this is a bash bug. Does it happen with other shells?

@sahilrajput03
Copy link

sahilrajput03 commented Oct 18, 2023

Curently I am using urxvt which is default in manjaro-i3 and it sometimes happens with this too, I have made an alias of r as reset command and I am used to using r command to reset the terminal quickly all the time now. :)

@sryze
Copy link
Contributor Author

sryze commented Dec 14, 2023

I wonder if this is a bash bug. Does it happen with other shells?

It does appear to be Bash-specific because I've been using ZSH for the last few days (with powerline as well) and haven't experienced this bug yet.

2024-02-03 Update:
There is a different problem with ZSH: sometimes if you interrupt a command, the blinking cursor disappears. Maybe it's related.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants