Keep track of entered console commands.

Issue #219.