From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Page Up/Down Issues With Emacs in Terminal Date: Wed, 6 Jul 2016 13:37:08 +0600 Message-ID: References: <86lh1flpzz.fsf@student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1467790682 7428 80.91.229.3 (6 Jul 2016 07:38:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2016 07:38:02 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Brandeis King Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 06 09:38:01 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bKhPE-0008Rx-AZ for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Jul 2016 09:38:00 +0200 Original-Received: from localhost ([::1]:59817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKhPA-00008P-FY for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Jul 2016 03:37:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKhOl-00008I-1z for help-gnu-emacs@gnu.org; Wed, 06 Jul 2016 03:37:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bKhOj-0003gt-2i for help-gnu-emacs@gnu.org; Wed, 06 Jul 2016 03:37:29 -0400 Original-Received: from mail-lf0-x22d.google.com ([2a00:1450:4010:c07::22d]:34064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bKhOi-0003gh-QW for help-gnu-emacs@gnu.org; Wed, 06 Jul 2016 03:37:29 -0400 Original-Received: by mail-lf0-x22d.google.com with SMTP id h129so149287649lfh.1 for ; Wed, 06 Jul 2016 00:37:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=Cx8gBAnZN8LeGC1+DBKuQyYow+1tZGRdrn2D567pQF8=; b=W9/8oAEludVvQwXXoRI6wQT8KSEPae+z3Jek7IgJbiYKFjHGzxWeD9cyixAvKUQ4zU 4hEpf0KBjeJmTNbXRvPJHSK2Zz3cGd0udgXqUIKvVI0OQF9OakGUEN1udD2IcJZZbTcO ZdA2R7+3EK8ukEhfaHlpFTgmpPrV+SPPWirzNvVebV22Vz+v1/ijPd5Fd7ixOhPBY13S bHuR6kRh+2W15q6RfFD386rSFcpGZd5Lpk/iGke9zjDvi08a5S/i3oeiLkuTWoqi13eJ ce4hyv0nRAnVyOf4WtdnjUl/csQIRYaE2kOIiwTuetvF2z2Bsvm4T4OGrgFHF7wrrY0i kXvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=Cx8gBAnZN8LeGC1+DBKuQyYow+1tZGRdrn2D567pQF8=; b=Cx1IeIX4rGaPFOwYRLPSU2lLAS5/vxFFXMJmZe4pIOOKZUIthJY2tMpOzMuntt1Ziy 0eGsAXkg3myIJtgZNHRJ9ZU5kQnN0p9YfcosW1p5zrRWDCdxav/9iqErDMlPlOaHX8RJ upfIWDxtrkYzAzk9XvBYrGVyFlwTd4KHBOQlRsKZo0VjEa0AmGho6Jyl1tTgZMPh2tzH fWMu/F5wTeua7SeflOH5A/ZsoNrZQ+FBO1ie+N8wBHESFAA4dNgOFUC+P/YidPPd6z3D s/37LxYMphwreM2Ltctc86dYKS6Sl7nlfeZHknoDPas4QH1PniupDsjZtX6Bcht2/BlM jrAg== X-Gm-Message-State: ALyK8tIuvEg10SQpTfyescTTGQXG06C7upBos/ZqBQlmvBSiYDCFwyEcnbajS05itGFnnh/2hGbhFIPbx7VPrw== X-Received: by 10.25.207.5 with SMTP id f5mr6191977lfg.45.1467790647689; Wed, 06 Jul 2016 00:37:27 -0700 (PDT) Original-Received: by 10.114.182.164 with HTTP; Wed, 6 Jul 2016 00:37:08 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: xTC0PdZUCZYNnemjWBHC2j8kxvk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::22d X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110708 Archived-At: On Wed, Jul 6, 2016 at 8:14 AM, Brandeis King w= rote: > To clarify, I'm experiencing this issue with xterm and gnome-terminal, bo= th with and without tmux. And yes, I'm using z-shell. When you press Page Down in xterm or gnome-terminal, it generates four characters: ESC [ 6 ~. Upon receiving this sequence, Emacs should translate it back to a [next] key vector. In order for this to happen, Emacs has to know you=E2=80=99re using an xterm-compatible terminal. It does that by looking at your TERM variable. Your symptoms suggest that the value of the TERM environment variable does not match your terminal type. To debug the problem further, you need to list, for each distinct case: * the complete stack of terminal emulators; * what the value of TERM is at each layer of that stack. The shell you are using is mostly irrelevant; the only thing it will affect is whether and how you set the TERM variable. For xterm and gnome-terminal, the expected result is: $ echo $TERM xterm or a variation thereof (e.g. xterm-256color). When you use tmux with xterm or gnome-terminal, TERM should be "xterm" (or xterm-*) before you start tmux, and "screen" (or screen-*) within tmux. (Newer systems, e.g. Ubuntu 16.04, also support a separate "tmux" (and tmux-*) terminal type. As far as I can tell, Emacs does not yet have such support.)