简体   繁体   English

使用Macbook Pro上的终端机,为什么我不能使用“删除按钮”来删除“ nled”命令上的文本

[英]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.

相关问题 在 M1 MacBook Pro 上安装了 Anaconda 但我在应用程序中找不到导航器 - 为什么会发生这种情况? - Installed Anaconda on an M1 MacBook Pro but I can't find the Navigator in applications - why is this happening? 如果我在MacBook Pro上重新打开终端,则找不到nvm - nvm not found if I reopen the terminal on MacBook Pro JQuery - 我可以查询MacBook Pro触控板吗? - JQuery - Can I query the MacBook Pro Trackpad? 无法将Android设备连接到MacBook Pro - Can't connect Android devices to MacBook Pro Macbook Pro命令行中的vim无法正常工作 - vim in Macbook Pro command line doesn't work appropriately 如何使用macbook上的命令键作为emacs的控制键? - How can I use the command keys on a macbook as control keys for emacs? 无法在Macbook上使用点子 - Can't use pip on macbook 我可以在MacBook Pro上使用Docker容器中的GPU吗? (AMD Radeon GPU) - Can I use my GPU from a docker container on a MacBook Pro ? (AMD Radeon GPU) 在Macbook Pro上安装CUDA5.0后,我找不到nsight eclipse和cuda示例 - I can't find nsight eclipse and cuda samples after installing CUDA5.0 on my macbook pro 我可以在 2019 Intel MacBook Pro 上为 iOS 编译 Capacitor 应用吗 - Can I compile Capacitor apps for iOS on 2019 Intel MacBook Pro
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM