When I use irb in the command line for ruby, sometimes it won't return any values. This seems to be happening after I've made a typo or entered incorrect code.
How do I exit this mode and go back to using irb normally? It won't let me quit with the 'quit' command, and I have to shut down the command line / Terminal and go back into it.
When this happens in vim you can press esc ! q n enter in sequence and it brings you back into the editor.
I've attached a screen shot showing what happens - as you can see it won't return any value for i in this instance.