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 getPrompt to get the current prompt #33675

Closed

Commits on Oct 19, 2020

  1. readline: add getPrompt to get the current prompt

    Since there is a setPrompt() there should be a getPrompt().
    There are use-cases where it is needed to know what the
    current prompt is. Adding a getPrompt() negates the need
    to store the set prompt externally or read the internal
    _prompt which would be bad practice.
    
    Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
    mattiasrunge and cjihrig committed Oct 19, 2020
    Configuration menu
    Copy the full SHA
    f315b21 View commit details
    Browse the repository at this point in the history