From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 08:15:31 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C6380DD7 for ; Fri, 6 Feb 2015 08:15:31 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 85A0A9B6 for ; Fri, 6 Feb 2015 08:15:31 +0000 (UTC) Received: from [89.204.139.174] (helo=c720-r276659) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1YJe4V-0001sJ-OV for freebsd-questions@freebsd.org; Fri, 06 Feb 2015 09:15:28 +0100 Date: Fri, 6 Feb 2015 09:15:25 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: key Shift+Prior not working for scroll-up in xterm but in urxvt Message-ID: <20150206081525.GA1828@c720-r276659> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.139.174 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2015 08:15:31 -0000 Hello, This question is within -HEAD and ports as well from -HEAD: $ pkg info | egrep 'xorg-7|xterm|rxvt' rxvt-unicode-9.20 Clone of the terminal emulator rxvt modified to support Unicode xorg-7.7_1 X.Org complete distribution metaport xterm-312 Terminal emulator for the X Window System I run this 11C on a small netbook (Acer C720) which does not have physical keys for PG_UP/DOWN; that's why I use xmodmap to define Mode_switch + UP --> Prior Mdee_switch + Down --> Next xmodmap -e "keycode 98 = Up Up Prior" xmodmap -e "keycode 104 = Down Down Next" When I now do in the terminal urxvt holding down both Mode_switch and Shift, it scrolls fine with the Up and Down keys as expected: the terminal window is scrolled up and down. When I do the same, the key is delivered to the xterm itself and I can see them, for example, with 'od -c' as: $ od -c ^[[5;2~^[[5;2~ ^[[6;2~^[[6;2~ 0000000 033 [ 5 ; 2 ~ 033 [ 5 ; 2 ~ \n 033 [ 6 0000020 ; 2 ~ 033 [ 6 ; 2 ~ \n 0000032 The 033 [ 5 ; 2 ~ for Up and the 033 [ 6 ; 2 ~ for down. Why this does not work in xterm? Thanks matthias -- Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211 La referencia de la Duma a la anexión de la RDA, en este caso al contrario con la Crimlía sin referéndum, no solamente tiene gracia sino da en el blanco.- Marinos Yannikos @MarinosYannikos en un blog de RTdeutsch.