Git Bash不允许我输入任何内容,只是显示闪烁的光标 [英] Git Bash won't let me type anything, just shows a blinking cursor
问题描述
我无法在Git-Bash命令行中键入任何字符;它显示的只是一个闪烁的光标。 Git Bash昨天工作正常,但现在无法执行任何操作。我该怎么做才能解决此问题?
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?
推荐答案
我找到了类似症状的答案。
和我一样,我会在此处将其包括在找到该页面以寻找答案的人中。
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.
对于我来说,光标没有移动,或在屏幕上显示我的键入内容。
但是,它实际上执行了该命令(如果我按 Enter
),即使它看上去 好像我什么都没输入!
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!
解决方案是键入 reset
<输入>
The solution was to type reset
< Enter >
结果可能是任何shell程序(cmd,git bash等)的问题,而不仅仅是Git Bash问题。
似乎 Ctrl-C
或 Ctrl-Z
有时会导致终端不向屏幕回显命令,具体取决于被杀死时正在运行的进程。
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.
重置
恢复它。
我发现解决方案,以及在 https://askubuntu.com/a/172747/636571
I found the solution, and the explanation why, at https://askubuntu.com/a/172747/636571
这篇关于Git Bash不允许我输入任何内容,只是显示闪烁的光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!