Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arrow keys on VT? #23

Open
nirno opened this issue Sep 14, 2019 · 0 comments
Open

arrow keys on VT? #23

nirno opened this issue Sep 14, 2019 · 0 comments

Comments

@nirno
Copy link

nirno commented Sep 14, 2019

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant