Implemented basic user input facility in the main thread.  There's a bug
whereby main waits on user input even when the packet transmission has
finished.