![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "support.h"
Include dependency graph for console.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | MAX_LEN_CONSOLE_LINE 1024 |
| #define | CON_RED "\u001b[31m" |
| #define | CON_GREEN "\u001b[32m" |
| #define | CON_YELLOW "\u001b[33m" |
| #define | CON_BLUE "\u001b[34m" |
| #define | CON_MAGENTA "\u001b[35m" |
| #define | CON_CYAN "\u001b[36m" |
| #define | CON_WHITE "\u001b[37m" |
| #define | CON_RESET "\u001b[0m" |
Enumerations | |
| enum | rfc_status { C_COMMENT = 0 , C_VERSION = 1 , C_DEBUG = 2 , C_LOG_BASE = 10 , C_OK = 100 , C_DISCONNECTED = 102 , C_FAIL = 200 , C_METAERROR = 201 , C_SYNTAX = 300 , C_BOUNCE = 301 , C_GENFAIL = 400 , C_WARNING = 500 } |
Functions | |
| void | con_set_color (const char *) |
| void | con_log_init (const QString &log_filename) |
| Initialize logging via console. More... | |
| void | con_log_close () |
| Deinitialize logging. More... | |
| void | con_write (enum rfc_status rfc_status, const char *message,...) fc__attribute((__format__(__printf__ |
| void void | con_puts (enum rfc_status rfc_status, const char *str) |
| Write to console and add line-break, and show prompt if required. More... | |
| void | con_flush () |
| Ensure timely update. More... | |
| void | con_prompt_init () |
| Initialize prompt; display initial message. More... | |
| void | con_prompt_off () |
| Do not print a prompt after log messages. More... | |
| void | con_prompt_enter () |
| User pressed enter: will need a new prompt. More... | |
| void | con_set_style (bool i) |
| Set style. More... | |
| bool | con_get_style () |
| Returns rfc-style. More... | |
| enum rfc_status |
| void con_flush | ( | ) |
Ensure timely update.
Definition at line 183 of file console.cpp.
Referenced by metaserver_failed().
| bool con_get_style | ( | ) |
Returns rfc-style.
Definition at line 201 of file console.cpp.
Referenced by handle_stdin_input_real(), show_help_command_list(), and show_help_option_list().
| void con_log_close | ( | ) |
Deinitialize logging.
Definition at line 123 of file console.cpp.
Referenced by main(), and server_quit().
| void con_log_init | ( | const QString & | log_filename | ) |
| void con_prompt_enter | ( | ) |
User pressed enter: will need a new prompt.
Definition at line 225 of file console.cpp.
| void con_prompt_init | ( | ) |
Initialize prompt; display initial message.
Definition at line 206 of file console.cpp.
Referenced by freeciv::server::server().
| void con_prompt_off | ( | ) |
Do not print a prompt after log messages.
Definition at line 220 of file console.cpp.
Referenced by freeciv::server::pulse().
| void void con_puts | ( | enum rfc_status | rfc_status, |
| const char * | str | ||
| ) |
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 162 of file console.cpp.
Referenced by con_prompt_init(), con_set_style(), con_write(), metaserver_failed(), and start_game().
| void con_set_color | ( | const char * | col | ) |
Definition at line 130 of file console.cpp.
Referenced by con_puts().
| void con_set_style | ( | bool | i | ) |
| void con_write | ( | enum rfc_status | rfc_status, |
| const char * | message, | ||
| ... | |||
| ) |