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

simplify handling of input escape codes & support ctrl+arrows #216

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

Commits on Aug 10, 2023

  1. rework handling of input escape sequences

    this:
    1. prevents unknown escape sequences from leaking over as real input in some
    situations
    2. makes it easier to handle longer escape sequences in the future
    dzwdz committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    3b96749 View commit details
    Browse the repository at this point in the history
  2. support Ctrl+Left and Ctrl+Right

    yhirose's patch didn't make linenoiseEditDeletePrevWord() use the encoding
    abstractions, so i'm being consistent here. it works with utf8 anyways
    
    furthermore, this makes it easier to cherrypick this onto a separate branch
    and send as a PR upstream
    dzwdz committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    5a17d74 View commit details
    Browse the repository at this point in the history