如何在tcsh shell上映射Delete和End键? [英] How to map Delete and End keys on tcsh shell?

查看:125
本文介绍了如何在tcsh shell上映射Delete和End键?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用tcsh,并且在cmd行上按Delete/End时,它只是显示为~;我必须按<Ctrl><e>转到行尾.有人可以帮我按他们的名字提示使用Delete/End键吗?

I use tcsh , and when Delete/End is pressed on cmd line, it simply shows up as ~ ; I have to press <Ctrl><e> to go to end of line. Can anyone help me to be able to use Delete/End keys as their name suggests ?

推荐答案

那些键已经在我的Debian系统上起作用了.我在/etc/csh.cshrc文件中找到了这些命令:

Those keys already worked on my Debian system. I found these commands in the /etc/csh.cshrc file:

if ($?tcsh && $?prompt) then
        bindkey "\e[1~" beginning-of-line # Home
        bindkey "\e[7~" beginning-of-line # Home rxvt
        bindkey "\e[2~" overwrite-mode    # Ins
        bindkey "\e[3~" delete-char       # Delete
        bindkey "\e[4~" end-of-line       # End
        bindkey "\e[8~" end-of-line       # End rxvt
endif

这篇关于如何在tcsh shell上映射Delete和End键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆