Skip to content

Binding raw escape sequences doesn't work #2950

@friendly-bits

Description

@friendly-bits

Description of the problem or steps to reproduce

I'm using MobaXterm on Windows to connect to my Debian machine via SSH. The default key bindings for SelectWordLeft and SelectWordRight (CtrlShiftLeft and CtrlShiftRight) don't work. I checked in the raw mode (in micro) what it receives when I'm pressing these combinations and it says:
EventKey: Left: "\x1bOD"
EventKey: Right: "\x1bOC"

So following the instructions for binding raw escape sequences, I added this to my ~/.config/micro/bindings.json:
"\x1bOC": "SelectWordRight",
"\x1bOD": "SelectWordLeft",

But after that, when launching micro, it says "Error reading bindings.json: invalid character 'x' in string escape code".
Exactly like in this older issue #1863 .

Specifications

Commit hash: c2cebaa
OS: Debian Stretch (connecting from MobaXterm on Windows, through SSH)
Terminal: MobaXterm

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