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

Small compatibility fixes #27

Closed
wants to merge 5 commits into from
Closed

Small compatibility fixes #27

wants to merge 5 commits into from

Commits on Sep 7, 2022

  1. Reduce -Wmissing-prototypes noise

    A couple of functions should be static as they have no prototypes in
    the header files.
    
    Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
    dwmw2 committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    89f5454 View commit details
    Browse the repository at this point in the history
  2. Echo input when reading from non-tty

    Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
    dwmw2 committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    d2fb16a View commit details
    Browse the repository at this point in the history
  3. Make linenoise.h C++ compatible

    Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
    dwmw2 committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    908f6c4 View commit details
    Browse the repository at this point in the history
  4. Fix reverse-i-search behaviour

    Pressing Ctrl-R again while in reverse-i-search should search back
    further, while up/down cursor should navigate to the adjacent lines
    in history rather than searching for matches.
    
    Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
    dwmw2 committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    5f736e3 View commit details
    Browse the repository at this point in the history
  5. Reimplement 'forward-search-history' as Ctrl-S

    As noted in https://superuser.com/questions/610980/ you can't actually
    use this (in readline or linenoise) unless you disable XON/XOFF flow
    control processing in the terminal with 'stty -ixon'.
    
    Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
    dwmw2 committed Sep 7, 2022
    Configuration menu
    Copy the full SHA
    fc925d3 View commit details
    Browse the repository at this point in the history