[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Consistant Keyboard Configuration (was Re: Another packages wishlist)



On Thu, 2 Mar 2000, Daniel Burrows wrote:

> On Thu, Mar 02, 2000 at 06:34:10AM -0500, Branden Robinson was heard to say:
> > Please ensure you're using the latest version of the xterm package before
> > making this complaint.

$ dpkg -s xterm | grep Version
Version: 3.3.6-4

>   I don't know about Woody, but I updated to the most recent potato last night,
> and some programs still don't register home and end in xterm; I'm not sure
> why this is, but here are my xterm resources and terminfo file:
> 
> /etc/X11/Xresources/xterm:
[snip]

My /etc/X11/Xresources/xterm:
! /etc/X11/Xresources/xterm

! Uncomment the following lines to make xterm appear much like a virtual
! console, so that ANSI colors will make more sense.
! XTerm*background: black
! XTerm*foreground: gray90

! Make the backspace key generate ^? instead of ^H, per Debian keyboard policy.
! Make the delete key generate ^[[3~ instead of ^?, per Debian keyboard policy.
! Include override for BackSpace because older xterms do not understand the
! backarrowKey resource.
*VT100.Translations: #override ~Meta <Key>BackSpace: string("\177")\n\
                               <Key>Delete: string("\033[3~")


> infocmp xterm reports:
> bluegreen:~> infocmp xterm
> #       Reconstructed via infocmp from file: /etc/terminfo/x/xterm
> xterm|X11 terminal emulator, 
>         am, bce, km, mc5i, mir, msgr, xenl, 
>         colors#8, cols#80, it#8, lines#24, pairs#64, 
>         acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, 
>         bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l, 
>         clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M, 
>         csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H, 
>         cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C, 
>         cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, 
>         cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, 
>         dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el1=\E[1K, el=\E[K, 
>         enacs=\E(B\E)0, flash=\E[?5h\E[?5l, home=\E[H, 
>         hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, 
>         il=\E[%p1%dL, il1=\E[L, ind=^J, invis=\E[8m, 
>         is2=\E[!p\E[?3;4l\E[4l\E>, ka1=\EOw, ka3=\EOu, kb2=\EOy, 
>         kbeg=\EOE, kbs=\177, kc1=\EOq, kc3=\EOs, kcub1=\EOD, 
>         kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~, 
>         kend=\E[4~, kent=\EOM, kf10=\E[21~, kf11=\E[23~, 
>         kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~, 
>         kf16=\E[29~, kf1=\EOP, kf17=\E[31~, kf18=\E[32~, 
>         kf19=\E[33~, kf20=\E[34~, kf2=\EOQ, kf3=\EOR, kf4=\EOS, 
>         kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, 
>         khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~, 
>         mc0=\E[i, mc4=\E[4i, mc5=\E[5i, op=\E[39;49m, rc=\E8, 
>         rev=\E[7m, ri=\EM, rmacs=^O, rmam=\E[?7l, 
>         rmcup=\E[?1047l\E[?1048l, rmir=\E[4l, rmkx=\E[?1l\E>, 
>         rmso=\E[27m, rmul=\E[24m, rs1=\Ec, 
>         rs2=\E[!p\E[?3;4l\E[4l\E>, sc=\E7, setab=\E[4%p1%dm, 
>         setaf=\E[3%p1%dm, 
>         setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, 
>         setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m, 
>         sgr0=\E[m\017, 
>         sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\016%e\017%;, 
>         smacs=^N, smam=\E[?7h, smcup=\E[?1048h\E[?1047h, 
>         smir=\E[4h, smkx=\E[?1h\E=, smso=\E[7m, smul=\E[4m, 
>         tbc=\E[3g, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c, 
>         vpa=\E[%i%p1%dd, 

Same here.

>   Now, I'm not an expert on terminfo files, but shouldn't khome match the home
> escape sequence produced by xterm?

I'd think so, yes. But on my system, HOME generates \E[H and END generates
\E[F . This doesn't correspond with what terminfo says, so the HOME and
END keys don't o what they're supposed to do.

I have checked all files in /etc/X11/Xresources/, ~/.Xresources and the
output of xrdb -query. Still, I can not find the reason for xterm to
generate \E[H instead of \E[1~ when I press the HOME key. Can anybody
help?

Remco
-- 
rd1936:  9:40pm  up 58 days,  2:23,  9 users,  load average: 1.21, 1.20, 1.18


Reply to: