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

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

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.

  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

! 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.
! Make the home and end keys appear to always be in keypad-application mode.
! 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~")\n\
                               <Key>Home: string("\033OH")\n\
                               <Key>End: string("\033OF")

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, 
        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, 
        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, 

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


  "People would panic?"
  "Very briefly, I'm afraid."

     -- The dangers of colliding with a star examined;
           Terry Pratchett, _The Light Fantasic_

Reply to: