Xterm and .Xresources

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



Howdy,

I am trying to get Xterm to work in practically the same way as the console, just with a bit better font support. I have searched the net and created an extensive .Xresources file, which is attached to this message. It is supposed to fix all the function keys, the six pack, and even the numpad keys. the problem is, the keyboard fix part, doesn't work.

I found that if I export TERM=vt220 that most keys do work, but home and end in applications like nano and ne do not work still and cause weird behavior. I was wondering if exporting TERM should even be necessary, because in the console, I never have to do that, and it shows as "linux".

Can someone please take a look and help fix up this .Xresources, and also, do I really need to export TERM, or can I ditch that setting?

Thanks for the help,
Storm

--
! Start in Unicode
XTerm*utf8: 1
UXTerm*utf8: 1
! Use white-on-black colors
XTerm.vt100.reverseVideo: true
UXTerm.vt100.reverseVideo: true
! XTerm already has 256 colors support
!   We ask it to set the correct $TERM XTerm.termName: xterm-256color
UXTerm.termName: xterm-256color
! Start with maximized window
xterm*maximized: true
! Make Alt key behave like in other terminals
XTerm.vt100.metaSendsEscape: true
UXTerm.vt100.metaSendsEscape: true
! Fix the keyboard
XTerm*VT100.translations: #override \n\
            <Key>Home: string(0x1b) string("[3~") \n \
            <Key>End: string(0x1b) string("[4~") \n
    vt220*VT100.translations: #override \n\
    ~Shift  <Key>F1: string(0x1b) string("OP") \n \
    ~Shift  <Key>F2: string(0x1b) string("OQ") \n \
    ~Shift  <Key>F3: string(0x1b) string("OR") \n \
    ~Shift  <Key>F4: string(0x1b) string("OS") \n \
    ~Shift  <Key>F5: string(0x1b) string("[16~") \n \
    ~Shift  <Key>F6: string(0x1b) string("[17~") \n \
    ~Shift  <Key>F7: string(0x1b) string("[18~") \n \
    ~Shift  <Key>F8: string(0x1b) string("[19~") \n \
    ~Shift  <Key>F9: string(0x1b) string("[20~") \n \
    ~Shift  <Key>F10: string(0x1b) string("[21~") \n \
    ~Shift  <Key>F11: string(0x1b) string("[28~") \n \
    ~Shift  <Key>F12: string(0x1b) string("[29~") \n \
    Shift   <Key>F1: string(0x1b) string("[23~") \n \
    Shift   <Key>F2: string(0x1b) string("[24~") \n \
    Shift   <Key>F3: string(0x1b) string("[25~") \n \
    Shift   <Key>F4: string(0x1b) string("[26~") \n \
    Shift   <Key>F5: string(0x1b) string("[K~") \n \
    Shift   <Key>F6: string(0x1b) string("[31~") \n \
    Shift   <Key>F7: string(0x1b) string("[31~") \n \
    Shift   <Key>F8: string(0x1b) string("[32~") \n \
    Shift   <Key>F9: string(0x1b) string("[33~") \n \
    Shift   <Key>F10: string(0x1b) string("[34~") \n \
    Shift   <Key>F11: string(0x1b) string("[28~") \n \
    Shift   <Key>F12: string(0x1b) string("[29~") \n \
            <Key>Print: string(0x1b) string("[32~") \n\
            <Key>Cancel: string(0x1b) string("[33~") \n\
            <Key>Pause: string(0x1b) string("[34~") \n\
            <Key>Insert: string(0x1b) string("[2~") \n\
            <Key>Delete: string(0x1b) string("[3~") \n\
            <Key>Home: string(0x1b) string("[1~") \n\
            <Key>End: string(0x1b) string("[4~") \n\
            <Key>Prior: string(0x1b) string("[5~") \n\
            <Key>Next: string(0x1b) string("[6~") \n\
            <Key>BackSpace: string(0x7f) \n\
            <Key>Num_Lock: string(0x1b) string("OP") \n\
            <Key>KP_Divide: string(0x1b) string("Ol") \n\
            <Key>KP_Multiply: string(0x1b) string("Om") \n\
            <Key>KP_Subtract: string(0x1b) string("OS") \n\
            <Key>KP_Add: string(0x1b) string("OM") \n\
            <Key>KP_Enter: string(0x1b) string("OM") \n\
            <Key>KP_Decimal: string(0x1b) string("On") \n\
            <Key>KP_0: string(0x1b) string("Op") \n\
            <Key>KP_1: string(0x1b) string("Oq") \n\
            <Key>KP_2: string(0x1b) string("Or") \n\
            <Key>KP_3: string(0x1b) string("Os") \n\
            <Key>KP_4: string(0x1b) string("Ot") \n\
            <Key>KP_5: string(0x1b) string("Ou") \n\
            <Key>KP_6: string(0x1b) string("Ov") \n\
            <Key>KP_7: string(0x1b) string("Ow") \n\
            <Key>KP_8: string(0x1b) string("Ox") \n\
            <Key>KP_9: string(0x1b) string("Oy") \n
     
    !       <Key>Up: string(0x1b) string("[A") \n\
    !       <Key>Down: string(0x1b) string("[B") \n\
    !       <Key>Right: string(0x1b) string("[C") \n\
    !       <Key>Left: string(0x1b) string("[D") \n\
     
*visualBell:    true
*saveLines:    1000
*cursesemul:    true
*scrollKey: true
*scrollBar: true
*ttyModes: erase ^?

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux