Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

readline: add history event and option to set initial history #33662

Closed

Commits on Jan 22, 2021

  1. readline: add history event and option to set initial history

    Add a history event which is emitted when the history has
    been changed. This enables persisting of the history in
    some way but also to allows a listener to alter the
    history. One use-case could be to prevent passwords from
    ending up in the history.
    
    A constructor option is also added to allow for setting
    an initial history list when creating a Readline interface.
    mattiasrunge committed Jan 22, 2021
    Copy the full SHA
    1f974fd View commit details
    Browse the repository at this point in the history