Skip to content

In macOS, home and end keys no longer work #330

@jkwuc89

Description

@jkwuc89

Description

In macOS (I am using Monterey 12.1), the home and end keys no longer move the cursor to the start of the line and the end of the line respectively. Instead, these keys output the escape sequences you see in the screenshot below.

Screen Shot 2022-01-12 at 6 28 57 AM

This behavior is new in irb that ships with Ruby 3.1. In the previous version, these keys worked as expected.

Result of irb_info

Ruby version: 3.1.0
IRB version: irb 1.4.1 (2021-12-25)
InputMethod: ReidlineInputMethod with Reline 0.3.1
RUBY_PLATFORM: x86_64-darwin21
LANG env: en_US.UTF-8
East Asian Ambiguous Width: 1

Terminal Emulator

I am using iTerm2 Build 3.4.14 which is configured to use xterm-256color.

Setting Files

I am not using a settings file.

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