Skip to content

Broken control+<arrow> handling when TERM=xterm* #83

@larsks

Description

@larsks

Out of the box, you can use ctrl+leftarrow and ctrl+rightarrow to jump backwards or forwards by word when editing the bash command line. When running bash under mtm when TERM outside of mtm is set to either xterm or xterm-256color, this is no longer case -- these key combinations generate garbage on the cli rather than moving the cursor.

This is the result of typing ctrl+leftarrow twice, followed by ctrl+rightarrow twice, with the cursor positioned at the end of the command line:

$ echo this is a testȪȪȹȹ

If I set TERM to a non-xterm variant, e.g:

TERM=screen mtm

Or:

TERM=vt100 mtm

Then ctrl+<arrow> works as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions