Skip to content

Text inputs do not handle Escape Sequences #544

@danieldiekmeier

Description

@danieldiekmeier

Description

gh crashes when using escape sequences to jump between words or lines.

I have these key mappings set up in iTerm:

image

gh Version: gh version 0.5.7 (2020-02-20)
iTerm Version: Build 3.3.10beta1
OS: macOS 10.14.6 (18G3020)

Steps to reproduce the behavior

  1. Get into any prompt (for example gh issue create)
  2. Fire the escape sequence
  3. See error

Expected vs actual behavior

Expected: The prompt should let me jump around words with the escape sequences
Actual: It crashes :(

Logs

$ gh pr create

Creating pull request for branchname into master in me/myrepo

? Title See how this crashes: could not collect title and/or body: could not prompt: Unexpected Escape Sequence: ['\x1b' 'f']

Metadata

Metadata

Assignees

No one assigned

    Labels

    accessibilitybugSomething isn't workingpriority-3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions