(wip) kvm: massive refactoring, introducing TBaseTerm
kvm: work around bug that caused subterm.clrscr to freeze