introducing untested TermWriter, replaces termfunctions of TermBuffer.