initial commit. seems to work afaik. Termcaps are not strictly necessary