modified: display title in stdout before display window