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

Unexpected Escape Sequence from Terminal #629

Open
shanielh opened this issue Jun 8, 2023 · 0 comments
Open

Unexpected Escape Sequence from Terminal #629

shanielh opened this issue Jun 8, 2023 · 0 comments

Comments

@shanielh
Copy link

shanielh commented Jun 8, 2023

Describe the bug
I'm using iTerm2 and I have some hotkeys that map to escape sequences that allows me to jump forward and backwards, and delete whole words and lines, when I use those hotkeys, I get the following error:

Error: unexpected escape sequence from terminal: ['\x1b' '\b']

Please provide following details

  1. JiraCLI Version:
(Version="1.4.0", GitCommit="eb842e18014303a575fde8e19508b3c7c13982c5", CommitDate="2023-05-09T07:09:45+00:00", GoVersion="go1.19.4", Compiler="gc", Platform="darwin/arm64")
  1. Are you using Jira cloud or on-premise jira server?
SERVER INFO
-----------

Version:         1001.0.0-SNAPSHOT
Build Number:    100225
Deployment Type: Cloud
Default Locale:  en_US
(END)
  1. What operating system are you using? Also mention version.
MacOS Ventura 13.0
  1. What terminal are you using? Also mention version.
Iterm2 Build 3.4.19

To Reproduce

Steps to reproduce the behavior:

  1. Copy the following text:
{"Key Mappings":{"0xf700-0x260000":{"Action":10,"Text":"[1;6A"},"0x37-0x40000":{"Action":11,"Text":"0x1f"},"0x32-0x40000":{"Action":11,"Text":"0x00"},"0xf709-0x20000":{"Action":10,"Text":"[17;2~"},"0xf70c-0x20000":{"Action":10,"Text":"[20;2~"},"0xf729-0x20000":{"Action":10,"Text":"[1;2H"},"0xf702-0x300000-0x7b":{"Version":1,"Action":11,"Text":"0x01","Label":""},"0xf72b-0x40000":{"Action":10,"Text":"[1;5F"},"0xf705-0x20000":{"Action":10,"Text":"[1;2Q"},"0xf703-0x260000":{"Action":10,"Text":"[1;6C"},"0xf700-0x220000":{"Action":10,"Text":"[1;2A"},"0xf701-0x280000":{"Action":11,"Text":"0x1b 0x1b 0x5b 0x42"},"0x38-0x40000":{"Action":11,"Text":"0x7f"},"0x33-0x40000":{"Action":11,"Text":"0x1b"},"0x7f-0x100000-0x33":{"Version":1,"Action":11,"Text":"0x15","Label":""},"0xf703-0x300000-0x7c":{"Version":1,"Action":11,"Text":"0x05","Label":""},"0xf703-0x220000":{"Action":10,"Text":"[1;2C"},"0x7f-0x80000-0x33":{"Version":1,"Action":11,"Text":"0x1b 0x08","Label":""},"0xf701-0x240000":{"Action":10,"Text":"[1;5B"},"0xf70d-0x20000":{"Action":10,"Text":"[21;2~"},"0xf702-0x280000-0x7b":{"Version":1,"Action":10,"Text":"b","Label":""},"0xf702-0x260000":{"Action":10,"Text":"[1;6D"},"0xf729-0x40000":{"Action":10,"Text":"[1;5H"},"0xf706-0x20000":{"Action":10,"Text":"[1;2R"},"0x34-0x40000":{"Action":11,"Text":"0x1c"},"0xf700-0x280000":{"Action":11,"Text":"0x1b 0x1b 0x5b 0x41"},"0x2d-0x40000":{"Action":11,"Text":"0x1f"},"0xf70e-0x20000":{"Action":10,"Text":"[23;2~"},"0xf702-0x220000":{"Action":10,"Text":"[1;2D"},"0xf703-0x280000-0x7c":{"Version":1,"Action":10,"Text":"f","Label":""},"0xf700-0x240000":{"Action":10,"Text":"[1;5A"},"0xf707-0x20000":{"Action":10,"Text":"[1;2S"},"0xf70a-0x20000":{"Action":10,"Text":"[18;2~"},"0x35-0x40000":{"Action":11,"Text":"0x1d"},"0x7a-0x100000-0x6":{"Version":1,"Action":11,"Text":"0x1f","Label":""},"0xf70f-0x20000":{"Action":10,"Text":"[24;2~"},"0xf703-0x240000":{"Action":10,"Text":"[1;5C"},"0xf701-0x260000":{"Action":10,"Text":"[1;6B"},"0xf72b-0x20000":{"Action":10,"Text":"[1;2F"},"0x36-0x40000":{"Action":11,"Text":"0x1e"},"0xf708-0x20000":{"Action":10,"Text":"[15;2~"},"0xf701-0x220000":{"Action":10,"Text":"[1;2B"},"0xf70b-0x20000":{"Action":10,"Text":"[19;2~"},"0xf702-0x240000":{"Action":10,"Text":"[1;5D"},"0xf704-0x20000":{"Action":10,"Text":"[1;2P"}},"Touch Bar Items":[]}

Save it in a file named mappings.itermkeymap

  1. Import the mappings into iTerm2
    a. Open iTerm2
    b. Press "Command + Comma"
    c. Open the Profiles tab
    d. Open the Keys tab (within the Profiles panel)
    e. Open the Key Mappings tab (within the Keys panel of the Profiles panel)
    f. Click on "Presets" at the bottom of the panel and then export your current configuration (you'll need it to restore once you're done reproducing the behavior)
    g. Click on "Presets" at the bottom of the panel and then click on Import
    h. Choose the file you just saved in Step 1
    i. Close the preferences panel
  2. Run Jira CLI, try create an issue, and then use the hotkey "Option + Delete" to delete a word
  3. See error

Expected behavior
A word should be deleted from the input (if the input is a text box)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant