From 5cbaa841d0bf07f75614205059324e5d2adbc5dd Mon Sep 17 00:00:00 2001 From: Joursoir Date: Fri, 27 Nov 2020 01:41:09 +0300 Subject: server: add different messages, support commands('/') and spec-messages --- src/const_vars.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/const_vars.hpp') diff --git a/src/const_vars.hpp b/src/const_vars.hpp index 9c7b1c5..d41f800 100644 --- a/src/const_vars.hpp +++ b/src/const_vars.hpp @@ -13,4 +13,11 @@ const int max_usermsg_len = oneline_len * 3 - max_name_len - 2; // ": " = 2 // 57 * 3 - 18 - 2 = 151 const int max_msg_len = oneline_len * 3; // 57*3 = 171 +const int key_enter = 10; +const int key_escape = 27; +const int key_backspace = 127; + +const int usually_msg = 0; // no first char +const int system_msg = 1; // first char: '#' + #endif \ No newline at end of file -- cgit v1.2.3-18-g5258