From e99241d3f0f1ab80c5d422ff8df94fee825db137 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 5 Dec 2016 17:55:30 +0100 Subject: [PATCH] Add console entry --- init.lua | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index c140343..e90852e 100644 --- a/init.lua +++ b/init.lua @@ -29,7 +29,7 @@ doc.new_category("advanced", name = "Advanced usage", description = "Advanced information about Minetest which may be nice to know, but is not crucial to gameplay", sorting = "custom", - sorting_data = {"light", "commands", "privs", "movement_modes", "settings", "online"}, + sorting_data = {"light", "console", "commands", "privs", "movement_modes", "settings", "online"}, build_formspec = doc.entry_builders.text_and_gallery, }) @@ -595,6 +595,37 @@ Noclip mode: • Required privilege: noclip]=] }}) +doc.new_entry("advanced", "console", { + name = "Chat/console", + data = { text = +[=[With [F10] you can open and close the console. The main use of the console is to show the chat log and enter chat messages or server commands. +Using the chat or server command key also opens the console, but it is smaller and will be closed after you sent a message. + +Use the chat to communicate to other players. This requires you to have the “shout” privilege. +Just type in the message and hit [Enter]. Chat messages can not begin with “/”. + +Write “/msg ” to write “” to which can only be seen by . + +There are some special controls while the console is open: + +• [F10] Open/close console +• [Enter]: Send chat message or server command +• [Tabulator]: Try to auto-complete a partially-entered player name +• [Ctrl]+[Left]: Move cursor to the beginning of the previous word +• [Ctrl]+[Right]: Move cursor to the beginning of the next word +• [Ctrl]+[Backspace]: Delete previous word +• [Ctrl]+[Delete]: Delete next word +• [Ctrl]+[U]: Delete all text before the cursor +• [Ctrl]+[K]: Delete all text after the cursor +• [Page up]: Scroll up +• [Page down]: Scroll down + +There is also an input history. Minetest saves your previous console inputs which you can quickly access later: + +• [Up]: Go to previous entry in history +• [Down]: Go to next entry in history]=] +}}) + -- TODO doc.new_entry("advanced", "commands", { name="Server commands", -- 2.11.4.GIT