Java Cmd 提示未检测到键盘输入
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18307829/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cmd Prompt not detecting keyboard input
提问by Darin Morris
I originally posted this question on TechNet, but thought StackOverflow would be better! http://social.technet.microsoft.com/Forums/en-US/d0eee59e-3a40-4502-a896-d818758e6c45/cmd-prompt-not-accepting-or-isnt-detecting-my-keyboard-input
我最初在 TechNet 上发布了这个问题,但认为 StackOverflow 会更好! http://social.technet.microsoft.com/Forums/en-US/d0eee59e-3a40-4502-a896-d818758e6c45/cmd-prompt-not-accepting-or-isnt-detecting-my-keyboard-input
I have a fairly odd problem, one I've never encountered before. Actually, I'm not sure that anyone has ever encountered this problem before. Googling doesn't seem to turn up anything useful, but hopefully someone here can shed some light.
我有一个相当奇怪的问题,我以前从未遇到过。实际上,我不确定以前是否有人遇到过这个问题。谷歌搜索似乎没有找到任何有用的东西,但希望这里的人可以有所启发。
I'm trying to create a key store for signing an android app for the android market place. I've been following the instructions found here: http://www.thomasmortensen.com/index.php/71-android-keystore-jdk
我正在尝试创建一个密钥库,用于为 android 市场签署一个 android 应用程序。我一直在按照此处找到的说明进行操作:http: //www.thomasmortensen.com/index.php/71-android-keystore-jdk
I've found the same instructions on other websites too and as far I can tell I'm following them correctly.
我也在其他网站上找到了相同的说明,据我所知,我正在正确地遵循它们。
This brings me to my problem:As I begin executing the "-keygen" command it seems to work fine and I am presented with the first field I need to supply to create the keystore - the keystore Password. However as I begin to type I notice that none of my input is being reflected i.e. I don't see any *or any other text.
这给我带来了我的问题:当我开始执行“-keygen”命令时,它似乎工作正常,并且出现了我需要提供的第一个字段来创建密钥库 - 密钥库密码。然而,当我开始输入时,我注意到我的输入没有被反映,即我没有看到任何*或任何其他文本。
As far as I can tell, at this point the only input it accepts is the enter key. If I hit enter and leave the value blank it eventually quits the command, getting me back to square 1.
据我所知,此时它接受的唯一输入是回车键。如果我按回车键并将值留空,它最终会退出命令,让我回到第 1 方格。
My keyboard is in perfect working order and I'm very sure that I'm entering in all the relevant fields correctly up until that point, so I was thinking it something to do with Cmd Prompt... could it be?
我的键盘处于完美的工作状态,而且我非常确定在那之前我正确地输入了所有相关字段,所以我认为这与 Cmd Prompt 有关系......可能吗?
Shortly after I tried on my PC (Windows 7 Ultimate), I tried to do this on another 2 computers, one running windows 8 (Pro) and the other windows 7 (Ultimate) and both result in the same outcome...
在我的 PC(Windows 7 Ultimate)上尝试后不久,我尝试在另外两台计算机上执行此操作,一台运行 Windows 8(Pro),另一台运行 Windows 7(Ultimate),结果都相同......
Makes me think this isn't something to do with Cmd Prompt!? :\
让我觉得这与 Cmd Prompt 无关!?:\
Has anyone encountered this before?
有没有人遇到过这个?
采纳答案by Darin Morris
Ok, so, a short while I ago I found a way "around" the problem which I think is worth sharing. Hopefully the next person to run into this problem will be saved a whole lot of pain!
好的,所以,不久前我找到了一种“绕过”我认为值得分享的问题的方法。希望下一个遇到这个问题的人会省去很多痛苦!
Basically, input is in fact being received by the command prompt at the keystore password step, though, instead of displaying an asterisk or some other placeholder the command prompt simply remains blank at this point.
基本上,输入实际上是在密钥库密码步骤中由命令提示符接收的,但此时命令提示符只是保持空白,而不是显示星号或其他占位符。
The input is being entered, just not reflected on screen. This makes it harder to be sure you've entered the correct input, but if you're very careful and have entered and confirmed the password values you will be able to successfully continue to the next step in the keygen process.
正在输入输入,只是没有反映在屏幕上。这使得更难确保您输入了正确的输入,但是如果您非常小心并且已经输入并确认了密码值,您将能够成功地继续进行密钥生成过程的下一步。
The next steps then continue to work as one would normally expect them to.
接下来的步骤会像人们通常期望的那样继续工作。
I still have no idea why the password step behaves so unexpectedly. If anyone has any insights I would be interested in hearing them.
我仍然不知道为什么密码步骤的行为如此出乎意料。如果有人有任何见解,我会很想听听他们的意见。