ADDED:
+ there is now a command history for the console. Press the up/down arrows to scroll through it when the console is visible.

REFACTOR:
+ cleaned up the way that commands are searched for when hitting the enter key in the console: using C++11 list comprehension now instead of crufty old C++03 iterator + for-loop.