简体   繁体   English

数字键在Bash Terminal(MacBook Pro)中不起作用

[英]Numeric keys not working in Bash Terminal (MacBook Pro)

I'm trying to push a rails app to my remote Heroku repository from a MacBook Pro using the Bash Terminal. 我正在尝试使用Bash终端从MacBook Pro将Rails应用程序推送到我的远程Heroku存储库。

The remote repository address contains numeric characters which are stripped out as soon as I copy/paste "git@heroku.com:app-name-[numbers].git". 远程存储库地址包含数字字符,一旦我复制/粘贴“ git@heroku.com:app-name- [numbers] .git”,数字字符就会被剥离。 If I try to type the numbers in manually, the comp just beeps. 如果我尝试手动输入数字,则该组合会发出哔哔声。

Really stuck on this one! 真的卡在这一个!

You've got a terminal setup problem. 您有终端设置问题。 First thing to try is simply to close down the terminal and restart; 首先尝试关闭终端并重新启动。 that'll be a fresh session. 那将是一个全新的环节。

If that doesn't work, carefully type the following 如果这样不起作用,请仔细键入以下内容

stty sane^J

or 要么

^Jreset^J

to set it to something normal. 将其设置为正常值。

It sounds as if you're getting characters echoed at least, so that may be easy. 听起来好像至少要回显字符,所以这很容易。 The ^J characters are LINEFEED, which is the actual ASCII character used for newline in UNIX-based systems. ^J字符是LINEFEED,这是在基于UNIX的系统中用于换行符的实际ASCII字符。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM