a new idea from tower: we could do that too
fixed some issues in the newly added terminal controler and text window manager code