Skip to content

Commit

Permalink
Console: Improved 'help' command
Browse files Browse the repository at this point in the history
List shortcut keys for autocompletion, navigating through the input
command history and clearing the line to the right of the cursor.

Todo: There appears to be an issue wrapping these tab stopped lines
in the console history UI widget.
  • Loading branch information
danij-deng committed Jul 25, 2013
1 parent e8c58ea commit b111a67
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions doomsday/client/src/con_main.cpp
Expand Up @@ -2239,11 +2239,14 @@ D_CMD(Help)
#ifdef __CLIENT__
LOG_MSG(_E(D) "Keys:" _E(.))
<< TABBED("Shift-Esc", "Open the taskbar and console")
<< TABBED("F5", "Clear the console message history")
<< TABBED("Home", "Jump to beginning of line")
<< TABBED("End", "Jump to end of line")
<< TABBED("PgUp/Dn", "Scroll up/down in the history, or expand the history to full height")
<< TABBED("Shift-PgUp/Dn", "Jump to the top/bottom of the history");
<< TABBED("Shift-PgUp/Dn", "Jump to the top/bottom of the history")
<< TABBED("F5", "Clear the console message history")
<< TABBED("Home", "Move the cursor to the start of the command line")
<< TABBED("End", "Move the cursor to the end of the command line")
<< TABBED("Tab", "Attempt autocompletion of the last word on the input line")
<< TABBED("Up/Down Arrow", "Move backwards/forwards through the input command history, or up/down one line inside a multi-line command")
<< TABBED("Ctrl-k", "Clear everything on the line right of the cursor position");
#endif
LOG_MSG(_E(D) "Getting started:");
LOG_MSG(" " _E(>) "Enter " _E(b) "help (what)" _E(.) " for information about " _E(l) "(what)");
Expand Down

1 comment on commit b111a67

@skyjake
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the wrapping of tabbed lines needs to be revised. The way it is currently implemented is not working too well...

Please sign in to comment.