diff options
Diffstat (limited to 'src/chat.h')
-rw-r--r-- | src/chat.h | 9 |
1 files changed, 6 insertions, 3 deletions
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(); |