Fix example app to accept arguments.
Add options for cooked or raw mode terminal to configuration parser.