Skip to content

Home/End keys on numpad don't move cursor #408

@LAC-Tech

Description

@LAC-Tech

Description

I have "Home" and "End" keys on my numpad.
I want to use them to navigate to the beginning and end of the line respectively:
Instead it prints out ^[[1~ and ^[[4~.

I don't think it's a problem with my setup. these numpad Home/End keys work on the following interpreters on this system

  • python
  • node
  • deno
  • ocaml (with rlwrap)

rlwrap irb produces the same results for me as above.

Result of irb_info

Please paste the result of irb_info command in IRB.

ex.)

irb(main):001:0> irb_info
=>
Ruby version: 3.1.2
IRB version: irb 1.4.1 (2021-12-25)
InputMethod: ReidlineInputMethod with Reline 0.3.0 and /home/lewis/.inputrc
RUBY_PLATFORM: x86_64-linux
LANG env: en_NZ.utf8
East Asian Ambiguous Width: 1

Terminal Emulator

Alacritty. Same issue on XTerm and UXTerm.

Setting Files

Are you using ~/.irbrc and ~/.inputrc?

no

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