This way it is possible to maintain multiple active consoles in an application. I've already got some neat ideas where this would be useful. Hash indexed command and variable list. This is easy to extend and also quick to access. Command parameter parsing.
Arrow keys move back and forthin the command history.
I've implemented a 'cmdlist' command to show the command history, and this could easily be called on F7 or whatever. Scrolling the console up and down. Pageup and pagedown are the controls for this, and a line in the lower left of the console indicates it's scrolled up. Executing text files. Each line in the text file is executed as if it was entered in the console.