Handle EOF in Console
Don't send empty commands in console
Merge pull request #791 from jage/improve-console

Improve console (EOF and empty commands)