commandHistory

val commandHistory: MutableList<String>

Keep track of recent commands in a history buffer. Each submitted command is added to the end of the list. Cursor-up retrieves the most recent selected line, and subsequent cursors-up retrieve previous lines, back to the first entry, then an empty command line, then the last entry again and so on. An initial cursor-down selects the first entry and goes from there.