Support readline history/completion by re-configuring stdout prior to cmdloop
Merge pull request #4 from silviot/master

Support readline history/completion by re-configuring stdout prior to cmdloop