[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.
- Page Up/Down Issues With Emacs in Terminal, Brandeis King, 2016/07/05
- Re: Page Up/Down Issues With Emacs in Terminal, Emanuel Berg, 2016/07/05
- Re: Page Up/Down Issues With Emacs in Terminal, Brandeis King, 2016/07/05
- Re: Page Up/Down Issues With Emacs in Terminal, Emanuel Berg, 2016/07/05
- Re: Page Up/Down Issues With Emacs in Terminal, Yuri Khan, 2016/07/06
- Message not available
- Re: Page Up/Down Issues With Emacs in Terminal, Emanuel Berg, 2016/07/06
- Re: Page Up/Down Issues With Emacs in Terminal, Yuri Khan, 2016/07/06
- Message not available
- Re: Page Up/Down Issues With Emacs in Terminal, Brandeis King, 2016/07/06
- Re: Page Up/Down Issues With Emacs in Terminal,
Yuri Khan <=
Re: Page Up/Down Issues With Emacs in Terminal, Emanuel Berg, 2016/07/05
Re: Page Up/Down Issues With Emacs in Terminal, Dmitry Alexandrov, 2016/07/05
Message not available