Dynamically set and resize terminal height in --interactive