This is the main module of the terminal (GUI-less) client.
More...
This is the main module of the terminal (GUI-less) client.
void apme_cfg_apply |
( |
void |
) | |
|
|
static |
Check the environment and set the environment name
void apme_chatlog_check |
( |
void |
) | |
|
|
static |
Check if the chatlog is enabled
If the chatlog is not enabled, ask the user for permission to enable it
This is the "catch all events" function
In the current implementation, this just calls the screen update function
bool apme_init |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
static |
Initialize the application:
- Initialize the debug console
- Initialize the Aion subsystem
- Initialize the chatlog engine
- Register events
- Parameters
-
[in] | argc | Argument number (passed from main) – not used |
[in] | argv | Argument array (passed from main) – not used |
- Return values
-
true | On success |
false | If it fails to initialize the aion sub-system |
false | If it fails to initialize the chatlog engine |
void apme_periodic |
( |
void |
) | |
|
|
static |
The periodic function, this is called by the main loop periodically
It polls the clipboard for commands and the chatlog for new text
bool apme_prompt |
( |
char * |
prompt, |
|
|
char * |
answer |
|
) |
| |
|
static |
Simple "prompt a question and wait for an answer" function
This is mainly used during startup to ask various questions
- Parameters
-
[in] | prompt | Text to prompt |
[in] | answer | Expected answer |
- Returns
- If the answer is equals to the
answer
parameter return true, otherwise false
void apme_screen_update |
( |
void |
) | |
|
|
static |
Updates the applications main terminal screen
This is usually called in response to certain events
void apme_sys_elevate |
( |
void |
) | |
|
|
static |
Respawn a new instance of the current executable with Admin privileges. If this operation is successfull, the current process will terminate.
- Note
- This function will trigger the UAC prompt.
int old |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
The terminal application main entry function
- Parameters
-
[in] | argc | Argument number (passed from main) – not used |
[in] | argv | Argument array (passed from main) – not used |
- Returns
- 0 on success, any other number on error.