help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Page Up/Down Issues With Emacs in Terminal


From: Yuri Khan
Subject: Re: Page Up/Down Issues With Emacs in Terminal
Date: Thu, 7 Jul 2016 10:47:47 +0600

On Thu, Jul 7, 2016 at 1:40 AM, Brandeis King <brandeis.a.king@gmail.com> wrote:

> I tried "emacs -Q -nw" again today, and the page up/down buttons do work as 
> expected.

So then the problem is in most probably in your init file.

> In answer to previously asked questions, term is "screen-256color" -- this is 
> set in my Xresources file

That’s a bad idea. You are lying to tmux that its underlying terminal
is screen-like, while it is in fact xterm-like. Additionally, other
programs, if you run them outside tmux, will misbehave.

Normally, tmux sets the TERM variable for processes running within its
session. It uses "screen" by default, but you can control it with this
line in your .tmux.conf:

   set -g default-terminal "screen-256color"

> Input-Decode Map variable holds:
> Value: (keymap
>  (27 keymap
[…]
>      (91 keymap
>          (53 keymap
>              (126 .
>                   [prior]))
>          (54 keymap
>              (126 .
>                   [next]))

These are the decoding sequences for Page Up and Page Down. When you
start Emacs with your customizations, you can look for these. If they
are not there, find what deletes them.

Also, see if you are binding M-[ or ESC [ to anything. If you do, many
function keys, including Page Up and Page Down, will probably stop
working.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]