Skip to content

Bad chars on home/end/del #435

Closed
Closed

Description

@xdmx

Description

I'm upgrading an application to ruby 3.1 and when I press any of the home/end/delete characters on the keyboard irb doesn't respect that and it shows some "random" characters instead:
Screenshot_20220310_141754

The same app under ruby 3.0 with reline 0.2.5 works correctly. I've already tried to uninstall and reinstall ruby 3.1 (I use rbenv)

Terminal Emulator

Arch Linux, Konsole, readline 8.1.002-1, reline 0.3.1

Activity

  1. sshock commented on Mar 10, 2022

    @sshock
    Contributor

    @xdmx Check out these PRs:

    #434 → would likely fix the delete key

    #433 → will very likely fix all these keys

    Also, check out this note in the downstream irb issue: ruby/irb#330 (comment)

    TL;DR at least part of the problem is probably Konsole sending the wrong codes for those keys for the specified TERM, so you might be able to fix at least Home and End if you can tweak the key mappings.

    Once #433 is merged it should fix everything and you likely won't need to override any key mappings, because that PR fixes the code to work like it used to by recognizing a bunch of different common key combinations.

  2. tompng commented on Jul 19, 2023

    @tompng
    Member

    Bad chars for various escape sequences is fixed in #522
    #569 makes home key and end key work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions