※ 本文轉錄自 [Linux] 看板
發信人: Cheung.bbs@bbs.cs.nccu.edu.tw (我們台灣不是bug!!), 看板: Linux
標 題: telnet跟rxvt的一些 tip
發信站: 政大資科貓空行館 (Sat Dec 21 02:00:23 2002)
轉信站: SayYa!ctu-reader!ctu-peer!news.nctu!news.cis.nctu!smallcatBBS
rxvt 用在debian上會不能利用 鍵盤上的home跟end鍵
以知的解法是改source重編 rxvt
這樣可以在上bbs時使用 home跟end鍵
但是因為小弟自己抓mdk的source編的rxvt 已可以於上bbs時
使用 home 跟end鍵了卻不能在debian上的X 使用 home跟end鍵
後來去看rh的設定檔 發現其實只要加入一些設定修改一下就可以正常使用了
同時也修正上bbs時 必須打 telnet -8 否則不能輸入中文的困擾
修改 /etc/inputrc
debian原設定只有
set input-meta on
set output-meta on
依據rh的設定改成如下
<!--
# /etc/inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.
# Be 8 bit clean.
set meta-flag on
set input-meta on
set output-meta on
$if mode=emacs
# for linux console and RH/Debian xterm
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
# for rxvt
"\e[8~": end-of-line
# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
# for freebsd console
"\e[H": beginning-of-line
"\e[F": end-of-line
$endif
# To allow the use of 8bit-characters like the german umlauts, comment out
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.
set convert-meta off
-->>