less: reuse former vi's key reading code. Improve SIGWINCH handling.