Command line UI now handles EOF during request/response interactions.
authorW. Trevor King <wking@drexel.edu>
Fri, 20 Aug 2010 10:43:17 +0000 (06:43 -0400)
committerW. Trevor King <wking@drexel.edu>
Fri, 20 Aug 2010 10:43:17 +0000 (06:43 -0400)
commitc0911e484ad7df3e1d3abe5840af81783e2b329b
tree4c53ecd67d1a6dfb06adc899aaea87716550ab88
parentfa02071d288637ba1877b3c4633c3a4dd5a5dc4f
Command line UI now handles EOF during request/response interactions.

For example
  $ echo | ./bin/hk.py -c 'new_playlist'
                       -c 'glob_curves_to_playlist test/data/*' --persist
used to loop forever thinking it was getting invalid responses to
  Exit? [y/N]

Also, change str() to unicode() in DoCommand.__call__ to handle
non-ascii messages (e.g. ยต (micro) from SI units).
hooke/interaction.py
hooke/plugin/engine.py
hooke/ui/commandline.py