Improved the interactive console

The console can now accept lines that would normally require multiple
lines.