Freeciv-3.2
|
#include "support.h"
Go to the source code of this file.
Macros | |
#define | MAX_LEN_CONSOLE_LINE 1024 /* closing '\0' included */ |
Enumerations | |
enum | rfc_status { C_IGNORE = -1 , C_COMMENT = 0 , C_VERSION = 1 , C_DEBUG = 2 , C_LOG_BASE = 10 , C_OK = 100 , C_CONNECTION = 101 , C_DISCONNECTED = 102 , C_REJECTED = 103 , C_FAIL = 200 , C_METAERROR = 201 , C_SYNTAX = 300 , C_BOUNCE = 301 , C_GENFAIL = 400 , C_WARNING = 500 , C_READY = 999 } |
Ensure timely update.
Definition at line 243 of file console.c.
Referenced by con_update_prompt(), and srv_prepare().
Returns rfc-style.
Definition at line 264 of file console.c.
Referenced by handle_stdin_input_real(), show_help_command_list(), and show_help_option_list().
Deinitialize logging
Definition at line 167 of file console.c.
Referenced by main(), and server_quit().
Initialize logging via console.
Definition at line 150 of file console.c.
Referenced by main(), and srv_prepare().
User pressed enter: will need a new prompt
Definition at line 303 of file console.c.
Referenced by server_sniff_all_input().
Clear "user pressed enter" state (used in special cases).
Definition at line 314 of file console.c.
Referenced by server_sniff_all_input().
Initialize prompt; display initial message.
Definition at line 272 of file console.c.
Referenced by server_sniff_all_input().
Do not print a prompt after log messages.
Definition at line 295 of file console.c.
Referenced by server_sniff_all_input().
Make sure a prompt is printed, and re-printed after every message.
Definition at line 286 of file console.c.
Referenced by server_sniff_all_input().
Write to console and add line-break, and show prompt if required. Same as con_write, but without the format string stuff. The real reason for this is because attribute complained with con_write(C_COMMENT, "") of "warning: zero-length format string"; this allows con_puts(C_COMMENT, "");
Definition at line 226 of file console.c.
Referenced by con_prompt_init(), con_set_style(), con_write(), srv_prepare(), and start_game().
void con_write | ( | enum rfc_status | rfc_status, |
const char * | message, | ||
... | |||
) |