diff options
author | James Booth <boothj5@gmail.com> | 2014-04-09 22:13:01 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-04-09 22:13:01 +0100 |
commit | 714ee2486353361898df7f5bb339e9be3f456830 (patch) | |
tree | 6f715e1ec7299ec94924c80abfe860ae17650af6 /src/ui | |
parent | b9aac28ccccf1f50e99f093b5627ce0e562dc859 (diff) | |
download | profani-tty-714ee2486353361898df7f5bb339e9be3f456830.tar.gz |
Added ui_unknown_command
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/core.c | 7 | ||||
-rw-r--r-- | src/ui/ui.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/core.c b/src/ui/core.c index 569425f9..3cb05fe8 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -539,6 +539,12 @@ _ui_invalid_command_usage(const char * const usage, void (**setting_func)(void)) } static void +_ui_unknown_command(const char * const input) +{ + cons_show("Unknown command: %s", input); +} + +static void _ui_disconnected(void) { wins_lost_connection(); @@ -1915,4 +1921,5 @@ ui_init_module(void) ui_input_nonblocking = _ui_input_nonblocking; ui_replace_input = _ui_replace_input; ui_invalid_command_usage = _ui_invalid_command_usage; + ui_unknown_command = _ui_unknown_command; } diff --git a/src/ui/ui.h b/src/ui/ui.h index a528b390..fc689305 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -160,6 +160,7 @@ void (*ui_input_nonblocking)(void); void (*ui_replace_input)(char *input, const char * const new_input, int *size); void (*ui_invalid_command_usage)(const char * const usage, void (**setting_func)(void)); +void (*ui_unknown_command)(const char * const input); // console window actions void (*cons_show)(const char * const msg, ...); |