read TTY in bigger blocks (non-blocking)
moved main loop to viewsh/rc.py