bugfix: read for a terminal in non-canonical mode can return 0 even before eof, that results in simple programs that don't use readline being broken (more complex input somehow survives)

also setting pgrp correctly
use insert to select an autocompletion, disable return to select autocompletions when the autocompletions window pops up automatically
ctrl-z for undo by default
displaying wd for background buffers
quote hack