window position should be unsigned
terminal resize - need handle_resize()