Fix up some terminal bits, add F keys
More curses samples