Improved command line layouting while resizing the main window