… | |
… | |
957 | is interpreted and executed as @@RXVT_NAME@@'s control sequence. For |
957 | is interpreted and executed as @@RXVT_NAME@@'s control sequence. For |
958 | example the following means "change the current locale to C<zh_CN.GBK> |
958 | example the following means "change the current locale to C<zh_CN.GBK> |
959 | when Control-Meta-c is being pressed": |
959 | when Control-Meta-c is being pressed": |
960 | |
960 | |
961 | URxvt.keysym.M-C-c: command:\033]701;zh_CN.GBK\007 |
961 | URxvt.keysym.M-C-c: command:\033]701;zh_CN.GBK\007 |
|
|
962 | |
|
|
963 | Due the the large number of modifier combinations, a defined key mapping |
|
|
964 | will match if at I<at least> the specified identifiers are being set, and |
|
|
965 | no other key mappings with those and more bits are being defined. That |
|
|
966 | means that defining a key map for C<a> will automatically provide |
|
|
967 | definitions for C<Meta-a>, C<Shift-a> and so on, unless some of those are defined |
|
|
968 | mappings themselves. |
|
|
969 | |
|
|
970 | Unfortunately, this will override built-in key mappings. For example |
|
|
971 | if you overwrite the C<Insert> key you will disable @@RXVT_NAME@@'s |
|
|
972 | C<Shift-Insert> mapping. To re-enable that, you can poke "holes" into the |
|
|
973 | user-defined keymap using the C<builtin:> replacement: |
|
|
974 | |
|
|
975 | URxvt.keysym.Insert: <my insert key sequence> |
|
|
976 | URxvt.keysym.S-Insert: builtin: |
|
|
977 | |
|
|
978 | The first line defines a mapping for C<Insert> and I<any> combination |
|
|
979 | of modifiers. The second line re-establishes the default mapping for |
|
|
980 | C<Shift-Insert>. |
962 | |
981 | |
963 | The following example will map Control-Meta-1 and Control-Meta-2 to |
982 | The following example will map Control-Meta-1 and Control-Meta-2 to |
964 | the fonts C<suxuseuro> and C<9x15bold>, so you can have some limited |
983 | the fonts C<suxuseuro> and C<9x15bold>, so you can have some limited |
965 | font-switching at runtime: |
984 | font-switching at runtime: |
966 | |
985 | |