UI API for terminal-based applications