improve resize + drag UI of terminal