Terminal rework.
Add main menu.