1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227
|
! Input assignments for shifted keys and some other configuration
! resources for xterm.
! Include this in your X resource file, probably
! $HOME/.Xdefaults or $HOME/.Xresources
! or add the resources dynamically by invoking
! xrdb -merge <this directory>/Xdefaults.mined
! from your X initialisation script, probably $HOME/.xinitrc .
! This should always be true!
XTerm*eightBitOutput: true
! This enables Alt key handling by mined.
XTerm*metaSendsEscape: true
! This enables Alt key handling with older versions of xterm.
!XTerm*eightBitInput: false
! This should be used to ensure distinguished DEL keys on the two keypads.
XTerm*deleteIsDEL: true
! This should be used to make Backspace/DEL handling of xterm and the
! tty consistent.
XTerm*backarrowKeyIsErase: false
UXTerm*backarrowKeyIsErase: false
! The following helps to recognise the cursor on a character displayed
! with reverse background (control character) or coloured background
! (invalid character code).
XTerm*cursorColor: blue
Rxvt.cursorColor: blue
Rxvt.cursorColor2: orchid
! Force older rxvt not to fake TERM=xterm as this confuses some settings;
! also rxvt should be recognisable as such for some work-arounds
! to be activated in mined.
Rxvt.termName: rxvt
! Select a font to be used with Unicode xterm;
! 9x18 is the font with the largest range of characters,
! together with the double-width 18x18 font that will automatically
! be co-selected by xterm.
! Its appearance is a bit spindly, however; that's why I prefer 10x20;
! unfortunately, this one comes without a 20x20 double-width mate with X.
UXTerm*font: 9x18
! To rather use the 10x20 font and fix the missing 20x20 fonts, see
! my instructions in the Unicode Howto of the mined web documentation
! (http://towo.net/mined); then enable the following settings:
!UXTerm*font: 10x20
! If you have a style preference for one of the CJK fonts, use one of:
!UXTerm*wideFont: 20x20ja
!UXTerm*wideFont: 20x20ko
! Or, if the short name aliases are not configured:
!UXTerm*font: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1
! and one of:
!UXTerm*wideFont: -misc-fixed-medium-r-normal-ja-20-200-75-75-c-200-iso10646-1
!UXTerm*wideFont: -misc-fixed-medium-r-normal-ko-20-200-75-75-c-200-iso10646-1
! Keyboard assignments
! The KP_Space definition may be needed to enable the HOP key on the keypad.
! The Home and End definitions are useful to distinguish keys from
! the two keypads; the right keypad should define keys named KP_Home etc.
!
! The Ctrl/Shift Return/KP_Enter definitions enable special line-end
! insertions. Other Ctrl/Shift definitions enable the corresponding
! modified functions on those keys.
!
! The Scroll_Lock and Pause assignments simulate a middle keypad key
! ("5") to provide the HOP function easily on Laptops/Notebooks.
!
! The Ctrl BackSpace definition enables the control-backspace function
! that removes combining accents from combined characters and also
! does not unindent on leading blanks.
!
! To enable further function keys, e.g. Control-Fn (n = 1..12),
! it may be necessary to redefine mappings to them by a window
! manager. E.g. KDE defines Control-Fn to move to virtual screen
! number n which I find less useful than editing functions, so
! I recommend to remap it to Control-Shift-Fn; this can be done in
! the KDE control center under keyboard shortcuts, shortcut series.
!
! The shifted digit mappings enable their use as prefix keys
! for accented characters, esp. for Vietnamese input.
!
! The definitions begin with two macros that can optionally be
! added to the keyboard translations to add mappings for
! Vietnamese composed vowels for different keyboard layouts.
! (These macros must be defined first to be available for later inclusion.)
! Vietnamese vowel mapping 1, to simplify input of Vietnamese characters
! on German, Scandinavian, Italian keyboards which have sufficient
! special keys to be redefined suitably for the Vietnamese vowels
! a with breve, o with horn, u with horn,
! while the three vowels with circumflex
! â, ê, ô should be input with some other appropriate means,
! e.g. the dead_circumflex prefix key.
! To enable these mappings, add an uncommented line
! Vietnamese1 \
! to the XTerm*VT100.Translations section below.
#define Vietnamese1 \
Meta Shift <Key> adiaeresis: string("Ă") \n\
Meta <Key> adiaeresis: string("ă") \n\
Meta Shift <Key> odiaeresis: string("Ơ") \n\
Meta <Key> odiaeresis: string("ơ") \n\
Meta Shift <Key> udiaeresis: string("Ư") \n\
Meta <Key> udiaeresis: string("ư") \n\
Meta Shift <Key> ae: string("Ă") \n\
Meta <Key> ae: string("ă") \n\
Meta Shift <Key> oslash: string("Ơ") \n\
Meta <Key> oslash: string("ơ") \n\
Meta Shift <Key> aring: string("Ư") \n\
Meta <Key> aring: string("ư") \n\
Meta Shift <Key> agrave: string("Ă") \n\
Meta <Key> agrave: string("ă") \n\
Meta Shift <Key> ograve: string("Ơ") \n\
Meta <Key> ograve: string("ơ") \n\
Meta Shift <Key> ugrave: string("Ư") \n\
Meta <Key> ugrave: string("ư") \n\
! Vietnamese vowel mapping 0, to assign all 6 Vietnamese accented vowels
! to a keyboard that does not provide enough special character keys.
! To enable these mappings, add an uncommented line
! Vietnamese0 \
! to the XTerm*VT100.Translations section below.
#define Vietnamese0 \
Meta Ctrl Shift <Key> a: string("Ă") \n\
Meta Ctrl <Key> a: string("ă") \n\
Meta Ctrl Shift <Key> o: string("Ơ") \n\
Meta Ctrl <Key> o: string("ơ") \n\
Meta Shift <Key> u: string("Ư") \n\
Meta <Key> u: string("ư") \n\
Meta Shift <Key> a: string("Â") \n\
Meta <Key> a: string("â") \n\
Meta Shift <Key> e: string("Ê") \n\
Meta <Key> e: string("ê") \n\
Meta Shift <Key> o: string("Ô") \n\
Meta <Key> o: string("ô") \n\
! Now the actual mapping section begins.
XTerm*VT100.Translations: #override \n\
Ctrl Shift <Key> Return: string("[57;6~") \n\
Ctrl <Key> Return: string("[57;5~") \n\
Shift <Key> Return: string("[57;2~") \n\
Ctrl Shift <Key> KP_Enter: string("[57;6~") \n\
Ctrl <Key> KP_Enter: string("[57;5~") \n\
Shift <Key> KP_Enter: string("[57;2~") \n\
Ctrl Shift Meta <Key> KP_Enter: string("[57;8~") \n\
Ctrl Meta <Key> KP_Enter: string("[57;7~") \n\
Shift Meta <Key> KP_Enter: string("[57;4~") \n\
Meta <Key> KP_Enter: string("[57;3~") \n\
Ctrl <Key> Home: string("[5H") \n\
Shift <Key> Home: string("[2H") \n\
<Key> Home: string("[H") \n\
Ctrl <Key> End: string("[5F") \n\
Shift <Key> End: string("[2F") \n\
<Key> End: string("[F") \n\
Ctrl <Key> KP_Space: string("[5E") \n\
Shift <Key> KP_Space: string("[2E") \n\
<Key> KP_Space: string("[E") \n\
Meta <Key> Insert: string("[2;3~") \n\
Meta <Key> KP_Insert: string("[2;3~") \n\
<Key> Scroll_Lock: string("[E") \n\
<Key> Pause: string("[E") \n\
Ctrl <Key> BackSpace: string("[;5~") \n\
Ctrl Shift Meta <Key> 0: string("[00;8~") \n\
Ctrl Shift Meta <Key> 1: string("[01;8~") \n\
Ctrl Shift Meta <Key> 2: string("[02;8~") \n\
Ctrl Shift Meta <Key> 3: string("[03;8~") \n\
Ctrl Shift Meta <Key> 4: string("[04;8~") \n\
Ctrl Shift Meta <Key> 5: string("[05;8~") \n\
Ctrl Shift Meta <Key> 6: string("[06;8~") \n\
Ctrl Shift Meta <Key> 7: string("[07;8~") \n\
Ctrl Shift Meta <Key> 8: string("[08;8~") \n\
Ctrl Shift Meta <Key> 9: string("[09;8~") \n\
Ctrl Meta <Key> 0: string("[00;7~") \n\
Ctrl Meta <Key> 1: string("[01;7~") \n\
Ctrl Meta <Key> 2: string("[02;7~") \n\
Ctrl Meta <Key> 3: string("[03;7~") \n\
Ctrl Meta <Key> 4: string("[04;7~") \n\
Ctrl Meta <Key> 5: string("[05;7~") \n\
Ctrl Meta <Key> 6: string("[06;7~") \n\
Ctrl Meta <Key> 7: string("[07;7~") \n\
Ctrl Meta <Key> 8: string("[08;7~") \n\
Ctrl Meta <Key> 9: string("[09;7~") \n\
Ctrl Shift <Key> 0: string("[00;6~") \n\
Ctrl Shift <Key> 1: string("[01;6~") \n\
Ctrl Shift <Key> 2: string("[02;6~") \n\
Ctrl Shift <Key> 3: string("[03;6~") \n\
Ctrl Shift <Key> 4: string("[04;6~") \n\
Ctrl Shift <Key> 5: string("[05;6~") \n\
Ctrl Shift <Key> 6: string("[06;6~") \n\
Ctrl Shift <Key> 7: string("[07;6~") \n\
Ctrl Shift <Key> 8: string("[08;6~") \n\
Ctrl Shift <Key> 9: string("[09;6~") \n\
Ctrl <Key> 0: string("[00;5~") \n\
Ctrl <Key> 1: string("[01;5~") \n\
Ctrl <Key> 2: string("[02;5~") \n\
Ctrl <Key> 3: string("[03;5~") \n\
Ctrl <Key> 4: string("[04;5~") \n\
Ctrl <Key> 5: string("[05;5~") \n\
Ctrl <Key> 6: string("[06;5~") \n\
Ctrl <Key> 7: string("[07;5~") \n\
Ctrl <Key> 8: string("[08;5~") \n\
Ctrl <Key> 9: string("[09;5~") \n\
Shift Meta <Key> 0: string("[00;4~") \n\
Shift Meta <Key> 1: string("[01;4~") \n\
Shift Meta <Key> 2: string("[02;4~") \n\
Shift Meta <Key> 3: string("[03;4~") \n\
Shift Meta <Key> 4: string("[04;4~") \n\
Shift Meta <Key> 5: string("[05;4~") \n\
Shift Meta <Key> 6: string("[06;4~") \n\
Shift Meta <Key> 7: string("[07;4~") \n\
Shift Meta <Key> 8: string("[08;4~") \n\
Shift Meta <Key> 9: string("[09;4~") \n\
Meta <Key> 0: string("[00;3~") \n\
Meta <Key> 1: string("[01;3~") \n\
Meta <Key> 2: string("[02;3~") \n\
Meta <Key> 3: string("[03;3~") \n\
Meta <Key> 4: string("[04;3~") \n\
Meta <Key> 5: string("[05;3~") \n\
Meta <Key> 6: string("[06;3~") \n\
Meta <Key> 7: string("[07;3~") \n\
Meta <Key> 8: string("[08;3~") \n\
Meta <Key> 9: string("[09;3~") \n\
! End mined X resources.
|