initial commit on TermBuffer rewrite.