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

Allow NULL prompt #207

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Allow NULL prompt #207

wants to merge 2 commits into from

Commits on Oct 21, 2022

  1. Allow passing a NULL prompt to linenoise()

    When a NULL prompt is passed the linenoise() function will assume that a prompt has already been written.  It computes the length of the prompt from cursor position at the time it is called and avoids writing over the prompt when editing.  This allows using linenoise to add line editing capability to a program (e.g. tclsh) which provides a REPL, so prints its own prompts, but does not provide any command line editing.
    culler authored Oct 21, 2022
    Configuration menu
    Copy the full SHA
    35ba44f View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from culler/allow_null_prompts

    Allow passing a NULL prompt to linenoise()
    culler authored Oct 21, 2022
    Configuration menu
    Copy the full SHA
    bdf1949 View commit details
    Browse the repository at this point in the history