Skip to content

arrow keys on VT? #23

@nirno

Description

@nirno

On my system (Arch Linux (rolling), GNU Emacs 26.3), smartrep works fine on X, but not so well on the console or on XFCE4 terminal (with -nw), both with and without -Q.

I have configured smartrep like this:

(require 'smartrep)
(smartrep-define-key global-map "C-x"
                     '(("{"        . shrink-window-horizontally)
                       ("}"        . enlarge-window-horizontally)
                       ("<left>"   . previous-buffer)
                       ("<right>"  . next-buffer)))

Of these bindings, C-x { and C-x } work fine on VT too, but not C-x <left> and C-x <right>: when I hit e.g. C-x <left>, it switches (correctly) to the previous buffer and paints the mode line green, but when I hit <left> once more, it just moves the cursor, like it did before loading smartrep; and analogically for C-x <right>.

When I try to use <prior> and <next> instead of <left> and <right>, the behavior is similar, but C-p and C-n work correctly.

What's going on?

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