Fix flickering in CLI