[英]With terminal on Macbook pro why can't I use the “delete button” to remove text on 'nled' command
I'm kind of confuse a little bit, I just got my Macbook Pro today and trying to do the C language programming through terminal and I use to use PC [Windows] and the "delete button" working as a backspace for Windows 我有点困惑,我今天才得到我的Macbook Pro,并试图通过终端进行C语言编程,我过去常常使用PC [Windows]和“删除按钮”作为Windows的退格键
now I'm on terminal before get into nled
it was working normal but after nled
command the delete button isn't effect anymore 现在我进入终端之前进入
nled
它工作正常,但是在nled
命令后,删除按钮不再起作用
is there a way to remove the text in nled
?? 有没有一种方法可以删除
nled
中的文本? I even tried with fn+delete and isnot working still 我什至尝试用fn + delete仍然无法正常工作
Terminal has a preference setting to have the Delete key send Control-H instead of the usual delete character (ASCII DEL 0x7F): 终端具有首选项设置,以使Delete键发送Control-H而不是通常的删除字符(ASCII DEL 0x7F):
Terminal > Preferences > Settings > [profile] > Advanced > Delete sends Ctrl-H
终端>首选项>设置> [配置文件]>高级>删除发送Ctrl-H
If you're going to be using nled
often, you can create a custom settings profile just for running nled
. 如果您将经常使用
nled
,则可以创建仅用于运行nled
的自定义设置配置文件。 Select an existing profile (eg, Basic) and choose Duplicate Settings from the action menu (the gear icon at the bottom of the profile list). 选择一个现有的配置文件(例如,基本),然后从操作菜单中选择“ 重复设置” (配置文件列表底部的齿轮图标)。 Customize the "Delete" preference, and then put the
nled
command in: 自定义“删除”首选项,然后将
nled
命令放入:
Terminal > Preferences > Settings > [profile] > Shell > Run command
终端>首选项>设置> [配置文件]> Shell>运行命令
Enable the "Run command" checkbox, and possibly also "Run inside shell". 启用“运行命令”复选框,并可能还启用“在外壳内部运行”。 Now you can just choose this new profile from the Shell > New Tab/Window submenus and it will create a new terminal and run the
nled
command with the customized Delete behavior. 现在,您可以从“ 外壳”>“新建选项卡/窗口”子菜单中选择此新配置文件,它将创建一个新终端,并使用自定义的“删除”行为运行
nled
命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.