summaryrefslogtreecommitdiff
path: root/src/chat.h
diff options
context:
space:
mode:
authorEsteban I. Ruiz Moreno <exio4.com@gmail.com>2013-06-02 21:16:32 -0300
committerShadowNinja <shadowninja@minetest.net>2016-03-02 23:23:31 -0500
commiteffa24737d6997dc40508533635accca3ed099e9 (patch)
treed8155991eada7cab1123ec48af7c1e7c539464ff /src/chat.h
parentda97969c9b72ea1752efb741663b727c0225795a (diff)
downloadminetest-effa24737d6997dc40508533635accca3ed099e9.tar.gz
minetest-effa24737d6997dc40508533635accca3ed099e9.tar.bz2
minetest-effa24737d6997dc40508533635accca3ed099e9.zip
Use the console instead of a dedicated window when pressing keymap_chat/cmd
keymap_console opens a full window for chat history browsing.
Diffstat (limited to 'src/chat.h')
-rw-r--r--src/chat.h9
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();