如何配置“删除” c shell 中删除单词的键
我尝试做“stty werase [3~”,“stty werase ^H”“stty werase ^?” ,但没有任何帮助。 你知道如何在c shell中配置DEL/删除键来删除单词吗?
谢谢,
I tried to do "stty werase [3~", "stty werase ^H" " stty werase ^?" , but nothing has helped.
Do you have any idea how to configure the DEL / delete key to delete a word in c shell?
Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用 tcsh 而不是 csh,这应该可以工作:
我不认为 stty 可以映射多字符序列,但您也许可以配置终端模拟器,以便 Delete 发送 ASCII DEL 字符。在xterm中,右键单击并启用“Delete is DEL”选项,或设置X资源:
然后就可以使用
(单引号实际上不是必需的)。其他终端仿真器也应该有某种机制来导致 Delete 发送 ASCII DEL。
If you're using tcsh rather than csh, this should work:
I don't think
stty
can map multi-character sequences, but you might be able to configure your terminal emulator so that Delete sends an ASCII DEL character. In xterm, right-click and enable the "Delete is DEL" option, or set the X resource:You can then use
(the single quotes aren't actually necessary). Other terminal emulators should also have some mechanism to cause Delete to send ASCII DEL.