Improve ipad support in terminal