Re: Alt modifier in xterm - emacs meta bindings in bash.



On Sat, 15 Apr 2006 13:41:26 -0400, Chris Jones wrote:

Is there any way I can change this behaviour so that xterm behaves like
most other terminals (rxvt, aterm, etc.)?

The following is my $HOME/.Xresources file, which is read on login to
gui desktops.

!-------------------------------------------------------------------
!
! .Xresources
!
!
! Uses: This file provides default values for colors, fonts, and other
! aspects of client appearance and behavior.
!
! Resources is the X buzzword for properties or attributes of an
! application.
!
! <<Edit this file your hearts content - there's no accounting for taste.>>
!
! Color options are in /usr/lib/X11/rgb.txt
! Font options are in /usr/lib/X11/fonts directory.
! Bitmaps are in /usr/include/X11/bitmaps
!
! after making changes do a: xrdb -merge .Xresources
!
! For users doing remote connections into the account.
! The following command should be first in .xinitrc
! xrdb -load $HOME/.Xresources
!
! vt100 XTerm users will need numlock on and export TERM=vt100
!
!-------------------------------------------------------------------
!
!Turn on error messages

*StringConversionWarnings: on

#ifdef COLOR
*customization: -color
#endif

Seyon.modems: /dev/modem

!!-----------------[ xbiff defaults ]----------------------------------
XBiff*background: PaleGreen
XBiff*border: slate blue
XBiff*font: 9x15
XBiff*foreground: Red
XBiff*mouse: black

!!!!
!-----------------[ XMAN Stuff ]--------------------------------------
!
!Xman*manualFontNormal: timr18
!Xman*manualFontBold: timb18
!Xman*manualFontItalic: timi18
!Xman*directoryFontNormal: timr18
Xman*background: White
!Xman*foreground: Saddlebrown
!Xman*Command.foreground: Red
!Xman*topBox*foreground: Blue
!Xman*Text.border: Red
!Xman*Label.font: timr14

!-----------------[ EMACS ]------------------------------------------
!
emacs*Background: DarkSlateGray
emacs*Foreground: Wheat
emacs*pointerColor: Orchid
emacs*cursorColor: Orchid
emacs*bitmapIcon: on
emacs.geometry: 80x25

emacs*Font: 10x20
emacs*title: emacs
emacs*iconName: emacs
emacs*iconState: on
emacs*iconUseBitmap: on
emacs*internalBorder: 10
!!!!
!-----------------------------[ xedit defs ]-----------------------------------

xedit*background: White
xedit*input: True

xedit*filename*preferredPaneSize: 825
xedit*editWindow*preferredPaneSize: 600

xedit*labelWindow*justify: center
xedit*labelWindow*label: no file yet

xedit*quit.label: Quit
xedit*save.label: Save
xedit*load.label: Load
xedit*Font: 9x15

xedit*buttons*orientation: horizontal
xedit*buttons*showGrip: FALSE

xedit*messageWindow*preferredPaneSize: 50
xedit*Paned*Text*allowResize: True

xedit*messageWindow.autoFill: True
xedit*messageWindow.scrollVertical: WhenNeeded

xedit*editWindow.autoFill: True
xedit*editWindow.scrollVertical: True

xedit*bc_label*label: Use Control-S and Control-R to Search.

!
! Keep CR in filename window from confusing the user.
!

xedit*filename.translations: #override \
<Key>Return: end-of-line()

!-----------------[ Keyboard focus policy ]---------------------------
!
*keyboardFocusPolicy: pointer
*autoKeyFocus: true
*focusAutoRaise: true
*autoRaiseDelay: 200
*startupKeyFocus: true
! -----------------[ XTERM ]-----------------------

XTerm*ttyModes: erase ^?
!
! XTERM resources
!
XTerm*applicationKeypadMode: True
XTerm*background: DarkSlateGray4
XTerm*c132: True
XTerm*cursorColor: Red
XTerm*font: 9x15
XTerm*foreground: Black
XTerm*fullCursor: true
XTerm*jumpScroll: on
XTerm*pointerColor: Black
XTerm*pointerShape: XTerm
XTerm*reverseVideo: false
XTerm*reverseWrap: false
XTerm*autoWrap: true
xterm*autoWrap: true
! XTerm*rightScrollBar: true
XTerm*saveLines: 4096
XTerm*scrollBar: true
XTerm*scrollKey: on
XTerm*scrollTtyOutput: off
XTerm*titleBar: false
XTerm_color*background: DarkSlateGray4
XTerm_color*cursorColor: Orchid
XTerm_color*foreground: Black
XTerm_color*reverseVideo: false



XTerm*fontMenu.Label: VT Fonts
XTerm*fontMenu*fontdefault*Label: Default
XTerm*fontMenu*font1*Label: Unreadable
XTerm*VT100*font1: nil2
XTerm*fontMenu*font2*Label: Tiny
XTerm*VT100*font2: 5x8
XTerm*fontMenu*font3*Label: Small
XTerm*VT100*font3: 6x10
XTerm*fontMenu*font4*Label: Medium
XTerm*VT100*font4: 8x13
XTerm*fontMenu*font5*Label: Large
XTerm*VT100*font5: 9x15
XTerm*fontMenu*font6*Label: Huge
XTerm*VT100*font6: 12x24
XTerm*fontMenu*fontescape*Label: Escape Sequence
XTerm*fontMenu*fontsel*Label: Selection
!-----------------[ VT100 ]------------------------------------------
XTerm.VT100.translations: #override\
<Key>F1:string(0x1b) string("OP") \n \
<Key>F2:string(0x1b) string("OQ") \n \
<Key>F3:string(0x1b) string("OR") \n \
<Key>F4:string(0x1b) string("OS") \n \
<Key>F5:string(0x1b) string("") \n \
<Key>F6:string(0x1b) string("[17~") \n \
<Key>F7:string(0x1b) string("[18~") \n \
<Key>F8:string(0x1b) string("[19~") \n \
<Key>F9:string(0x1b) string("[20~") \n \
<Key>F10:string(0x1b) string("[21~") \n \
<Key>F11:string(0x1b) string("[23~") \n \
<Key>F12:string(0x1b) string("[24~") \n \
<Key>KP_Enter:string(0x1b) string("OM") \n \
<Key>KP_Decimal:string(0x1b) string("On") \n \
<Key>KP_Add:string(0x1b) string("Ol") \n \
<Key>KP_Subtract:string(0x1b) string("Om") \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>Home:string(0x1b) string("[1~") \n \
<Key>Insert:string(0x1b) string("[2~") \n \
<Key>Delete:string(0x7f) \n \
<Key>End:string(0x1b) string("[4~") \n \
<Key>Prior:string(0x1b) string("[5~") \n \
<Key>Next:string(0x1b) string("[6~") \n \
<Btn1Down>: select-start() \n\
<Btn1Motion>: select-extend() \n\
<Btn1Up>: select-end(PRIMARY,CUT_BUFFER0) \n\
<Key>BackSpace:string(0x7f) \n\
<Key>Select: select-start() \n\
Button1<Btn2Down>: select-end(CLIPBOARD) \n\
Button1<Btn2Up>: ignore()
!

!------------------------- end .Xresources _____________________________
.