From d96ac911c927ec032f91fde2bed3de26c2353b1c Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 27 May 2025 21:49:52 +0800 Subject: fix: don't accept ascii seq(0x1B) this can mess up terminals of others won't really affect the server as we using ftxui and it seems to not affect the output somehow --- src/session.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/session.hpp') diff --git a/src/session.hpp b/src/session.hpp index 9b4a970..263dcb6 100644 --- a/src/session.hpp +++ b/src/session.hpp @@ -21,6 +21,8 @@ class CSession { bool isEmpty() const; void sanitize(); + + static constexpr char asciiEscape = 0x1B; //  }; const std::string &getName() const; -- cgit v1.2.3