From effa24737d6997dc40508533635accca3ed099e9 Mon Sep 17 00:00:00 2001 From: "Esteban I. Ruiz Moreno" Date: Sun, 2 Jun 2013 21:16:32 -0300 Subject: Use the console instead of a dedicated window when pressing keymap_chat/cmd keymap_console opens a full window for chat history browsing. --- src/chat.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/chat.h') diff --git a/src/chat.h b/src/chat.h index 5d26baf7b..367baaaf2 100644 --- a/src/chat.h +++ b/src/chat.h @@ -146,14 +146,17 @@ public: void input(wchar_t ch); void input(const std::wstring &str); - // Submit, clear and return current line - std::wstring submit(); + // Add a string to the history + void addToHistory(std::wstring line); + + // Get current line + std::wstring getLine(); // Clear the current line void clear(); // Replace the current line with the given text - void replace(std::wstring line); + std::wstring replace(std::wstring line); // Select previous command from history void historyPrev(); -- cgit v1.2.3