kvm, terminal: get terminal width, height, startx, starty
cx: mode objfpc
kvm: use terminal module to implement width, height, and clreol for ansi term
subtract 1 to offset the coordinate system
cw: use kvm.creol now that it works in tmux :)