terminal resize - work in progress