Skip to content

Make use of refresh_interval parameter for prompt-toolkit sessions #1699

Closed

Description

@tleonhardt

In prompt-toolkit, you can control session and UI refresh rates by configuring the refresh_interval in your Application / Session constructor, which invalidates and redraws the UI automatically.

We should add this as a parameter to the cmd2.Cmd.__init__ method with a default value. The default value should probably match whatever the default value from prompt-toolkit is.

Activity

  1. self-assigned this
    on Jun 26, 2026
  2. tleonhardt commented on Jun 27, 2026

    @tleonhardt
    MemberAuthor

    @kmvanbrunt What remains to be done for this? I think the change has been made and we just need to update the CHANGELOG.md and documentation?

  3. kmvanbrunt commented on Jun 27, 2026

    @kmvanbrunt
    Member

    @kmvanbrunt What remains to be done for this? I think the change has been made and we just need to update the CHANGELOG.md and documentation?

    I've made these changes on the #1700 PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions