The terminal shall provide two more functionalities / changes:
The ESC-part can be implemented by adding a hook into void NumeReTerminal::OnKeyDown() in gui/terminal/terminal.cpp at line 1209 near the if (m_isBusy) check and calling void GenericTerminal::erase_usercontent_line()
The arrow keys are handled in bool GenericTerminal::cursor_up() and bool GenericTerminal::cursor_down() in file gui/terminal/actions.cpp. Here one can examine the previous or the next entry in the history and check, whether it might be a candidate for autocompletion (use string TextManager::getCurrentInputLine() for obtaining the contents of the current line). If no autocompletion is possible, just return false.
Functionality was tested manually. No deviations detected.
Anonymous
Diff:
Diff:
Diff:
Related
Commit: [r991]
Diff: