Git Bash won't let me type anything, just shows a blinking cursor

眉间皱痕 提交于 2019-12-03 04:46:09

问题


I'm not able to type any characters at the Git-Bash command line; all it shows is a blinking cursor. Git Bash was working fine yesterday, but I'm not able to do anything on it now. What can I do to fix this?


回答1:


I found the answer to a problem with similar symptoms. I'll include it here for someone who finds this page looking for an answer, as I did.

In my case, the cursor didn't move, or show my typing onscreen.
However, it actually executed the command (if I pressed Enter), even though it looked like I didn't type anything in!

The solution was to type reset < Enter >

Turns out it can be an issue for any shell program (cmd, git bash, etc), not necessarily just a Git Bash issue.
It looks like Ctrl-C or Ctrl-Z can occasionally result in the terminal not echoing commands to the screen, depending on what process was running at the time it was killed.

reset restores it.

I found the solution, and the explanation why, at https://askubuntu.com/a/172747/636571




回答2:


I have a similar problem, I can type commands and it will execute them, but I cannot see what I type. And the solution that works for me is to type q < Enter > and it back to normal.




回答3:


Kill the server with CTRL+c in the command prompt window.




回答4:


I know this is may be late, but in case someone do like what happens with me. because closing visualize window solved cursor blink.

What happened?

I wrote a command -gitk which is used to visualize Git ( Great feature )

Then I tried to use git bash after while,I found only this blinking cursor. I tried many times to reset or even close it; however closing it caused an error so I got afraid of losing my work.

I closed the gitk visualize window and then Git bash restored as usual.

Link to gitk https://git-scm.com/book/en/v2/Appendix-A%3A-Git-in-Other-Environments-Graphical-Interfaces




回答5:


Right click on the mouse will show you the short cut. In my case working with git-bash

ctrl + insert to copy

and shift + insert to paste


来源:https://stackoverflow.com/questions/28073577/git-bash-wont-let-me-type-anything-just-shows-a-blinking-cursor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!