rotation handling #3

First pass on terminal rotation handling