… | |
… | |
1055 | extension might provide. |
1055 | extension might provide. |
1056 | |
1056 | |
1057 | The key combination that triggers the action, I<sym>, has the following format: |
1057 | The key combination that triggers the action, I<sym>, has the following format: |
1058 | |
1058 | |
1059 | (modifiers-)key |
1059 | (modifiers-)key |
1060 | |
1060 | |
1061 | Where I<modifiers> can be any combination of B<ISOLevel3>, B<AppKeypad>, |
1061 | Where I<modifiers> can be any combination of B<ISOLevel3>, B<AppKeypad>, |
1062 | B<Control>, B<NumLock>, B<Shift>, B<Meta>, B<Lock>, B<Mod1>, B<Mod2>, |
1062 | B<Control>, B<NumLock>, B<Shift>, B<Meta>, B<Lock>, B<Mod1>, B<Mod2>, |
1063 | B<Mod3>, B<Mod4>, B<Mod5>, and the abbreviated B<I>, B<K>, B<C>, B<N>, |
1063 | B<Mod3>, B<Mod4>, B<Mod5>, and the abbreviated B<I>, B<K>, B<C>, B<N>, |
1064 | B<S>, B<M>, B<A>, B<L>, B<1>, B<2>, B<3>, B<4>, B<5>. |
1064 | B<S>, B<M>, B<A>, B<L>, B<1>, B<2>, B<3>, B<4>, B<5>. |
1065 | |
1065 | |
… | |
… | |
1148 | URxvt.keysym.S-Insert: builtin: |
1148 | URxvt.keysym.S-Insert: builtin: |
1149 | |
1149 | |
1150 | The first line defines a mapping for C<Insert> and I<any> combination |
1150 | The first line defines a mapping for C<Insert> and I<any> combination |
1151 | of modifiers. The second line re-establishes the default mapping for |
1151 | of modifiers. The second line re-establishes the default mapping for |
1152 | C<Shift-Insert>. |
1152 | C<Shift-Insert>. |
|
|
1153 | |
|
|
1154 | =item builtin-string: |
|
|
1155 | |
|
|
1156 | This action is mainly useful to restore string mappings for keys that |
|
|
1157 | have predefined actions in @@RXVT_NAME@@. The exact semantics are a bit |
|
|
1158 | difficult to explain - basically, this action will send the string to the |
|
|
1159 | application that would be sent if @@RXVT_NAME@@ wouldn't have a built-in |
|
|
1160 | action for it. |
|
|
1161 | |
|
|
1162 | An example might make it clearer: @@RXVT_NAME@@ normally pastes the |
|
|
1163 | selection when you press C<Shift-Insert>. With the following bindings, it |
|
|
1164 | would instead emit the (undocumented, but what applications running in the |
|
|
1165 | terminal might expect) sequence C<ESC [ 2 $> instead: |
|
|
1166 | |
|
|
1167 | URxvt.keysym.S-Insert: builtin-string: |
|
|
1168 | URxvt.keysym.C-S-Insert: builtin: |
|
|
1169 | |
|
|
1170 | The first line disables the paste functionality for that key |
|
|
1171 | combination, and the second reinstates the default behaviour for |
|
|
1172 | C<Control-Shift-Insert>, which would otherwise be overridden. |
|
|
1173 | |
|
|
1174 | Similarly, to let applications gain access to the C<C-M-c> (copy to |
|
|
1175 | clipboard) and C<C-M-v> (paste clipboard) key combination, you can do |
|
|
1176 | this: |
|
|
1177 | |
|
|
1178 | URxvt.keysym.C-S-c: builtin-string: |
|
|
1179 | URxvt.keysym.C-S-v: builtin-string: |
1153 | |
1180 | |
1154 | =item EXTENSION:STRING |
1181 | =item EXTENSION:STRING |
1155 | |
1182 | |
1156 | An action of this form passes the B<STRING> to the @@RXVT_NAME@@perl(3) |
1183 | An action of this form passes the B<STRING> to the @@RXVT_NAME@@perl(3) |
1157 | extension of the same name. The extension will be loaded automatically if |
1184 | extension of the same name. The extension will be loaded automatically if |