client:keys
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
client:keys [2018/04/01 07:56] – Add more correct code hints karl | client:keys [2025/04/18 13:09] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
This page is about the **keys** file inside the user's HOME directory **.**[[crossfire]] . | This page is about the **keys** file inside the user's HOME directory **.**[[crossfire]] . | ||
+ | |||
+ | ===== Creation of the Keys file == | ||
When the [[:client]] starts the first time, then there will be no " | When the [[:client]] starts the first time, then there will be no " | ||
- | and **if** the user never would use the bind and [[: | + | and **if** the user never would use the [[: |
then would that file likely never exist there. | then would that file likely never exist there. | ||
Line 30: | Line 32: | ||
never tried to set this ' | never tried to set this ' | ||
and the **FLAGS** are | and the **FLAGS** are | ||
- | |#define KEYF_NORMAL | + | == Older == |
- | |#define KEYF_FIRE | + | |#define KEYF_NORMAL |0x01^N|// Used in normal mode //| |
- | |#define KEYF_RUN | + | |#define KEYF_FIRE |
- | |# | + | |#define KEYF_RUN |
- | |# | + | |# |
- | |# | + | |# |
- | |#define KEYF_META | + | |# |
- | |#define KEYF_MODIFIERS | + | |
+ | == Newer == | ||
+ | |#define KEYF_NORMAL | ||
+ | |#define KEYF_FIRE | ||
+ | |#define KEYF_RUN | ||
+ | |#define KEYF_EDIT | ||
+ | |#define KEYF_STANDARD | ||
+ | |#define KEYF_ALT | ||
+ | |#define KEYF_META | ||
+ | |#define KEYF_MODIFIERS | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Special Keybinding Line == | ||
+ | Special key bound lines start with an exclamation mark < | ||
+ | The special commands are : | ||
+ | * altkey0 ( newer clients ) | ||
+ | * altkey1 ( newer clients ) | ||
+ | * commandkey - default bound to Quote **'** | ||
+ | * completekey - :?: what does it do :?: | ||
+ | * firekey0 | ||
+ | * firekey1 | ||
+ | * metakey0 ( newer clients ) | ||
+ | * metakey1 ( newer clients ) | ||
+ | * nextkey | ||
+ | * prevkey | ||
+ | * runkey0 | ||
+ | * runkey1 | ||
+ | <WRAP lo>( [While [[#parsing of the keys file]]((keys.c: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Example Keys File == | ||
In this example using a GTK-1 client v1.11.0 , \\ | In this example using a GTK-1 client v1.11.0 , \\ | ||
the small letter [[# | the small letter [[# | ||
Line 129: | Line 162: | ||
</ | </ | ||
+ | ---- | ||
+ | |||
+ | ===== Parsing of the Keys file == | ||
+ | |||
+ | When the client starts, it checks for environmental variables \\ | ||
+ | CFCLIENT_LIBDIR and CF_DATADIR . \\ | ||
+ | :!: These variabes are not named " | ||
+ | like CF_CLIENT_LIBDIR and CF_CLIENT_DATADIR :!: | ||
+ | |||
+ | While the CF_DATADIR is used for theme and glade files, \\ | ||
+ | the **CFCLIENT_LIBDIR** is only used to look for a file named **def-keys** , \\ | ||
+ | which is included in the source code, but probably not in pre-packaged \\ | ||
+ | binary archives of OS distributions; | ||
+ | does not automatically install some {prefix}/ | ||
+ | :!: When [[client_compiling|compiling the client]] , a #define CLIENT_LIBDIR may be available to set a default // | ||
+ | While parsing((keys.c: |
client/keys.1522587400.txt.gz · Last modified: (external edit)