From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 13:03:55 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 B16882F5 for ; Fri, 6 Feb 2015 13:03:55 +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 72262E77 for ; Fri, 6 Feb 2015 13:03:55 +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 1YJiZb-0004xr-1M; Fri, 06 Feb 2015 14:03:51 +0100 Date: Fri, 6 Feb 2015 14:03:48 +0100 From: Matthias Apitz To: Thomas Dickey Subject: Re: key Shift+Prior not working for scroll-up in xterm but in urxvt Message-ID: <20150206130348.GA2764@c720-r276659> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Thomas Dickey , freebsd-questions@freebsd.org References: <20150206081525.GA1828@c720-r276659> <20150206092525.GA3070@aerie.jexium-island.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150206092525.GA3070@aerie.jexium-island.net> 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 Cc: freebsd-questions@freebsd.org 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 13:03:55 -0000 El día Friday, February 06, 2015 a las 04:25:25AM -0500, Thomas Dickey escribió: > > 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? > > That depends on what you want it to do (you did not say). I think, I said what I want: that with Mode_switch+Shift+Up/Down it does scrolling in xterm as it does in uRxvt. I followed your hints an tried configurations in the file ~/.Xdefaults-hostname: *VT100.translations: #override \ ShiftUp: scroll-back(1,page) \n\ ShiftDown: scroll-forw(1,page) \n\ ShiftF9: string("hola") (the last line for F9 is only to see if the file works at all). With the above config it now scrolls in xterm with Shift-Up/Down. But I'm unable to configure that it scrolls with Mode_switch+Shift+Up/Down and I want to have this to use the same key sequence in xterm and uRxvt and not always have to think where I am. Any idea? 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.