! /etc/X11/Xresources
!
! global Xresources file -- used by both xdm and xinit (startx)

! Fix Motif client handling of backspace/delete; this is not supposed to be
! necessary anymore so it is commented out.
! *XmText.translations: #override\n\
!	<Key>osfDelete: delete-previous-character()
! *XmTextField.translations: #override\n\
!	<Key>osfDelete: delete-previous-character()

! Fix Xaw (Athena widget set) programs to understand the delete key
*Text.translations: #override ~Shift ~Meta <Key>Delete: delete-next-character()

! 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 XTerm use Debian's customized terminfo entry.
XTerm*termName: xterm-debian

! Make the backspace key generate ^? instead of ^H, per Debian keyboard policy.
*VT100*backarrowKey: false

! 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 <Key>BackSpace: string("\177")\n\
                               <Key>Delete: string("\033[3~")\n\
                               <Key>Home: string("\033OH")\n\
                               <Key>End: string("\033OF")
