From owner-freebsd-questions@FreeBSD.ORG Mon Feb 9 10:20:07 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D778AAEA for ; Mon, 9 Feb 2015 10:20:07 +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 968D7B24 for ; Mon, 9 Feb 2015 10:20:07 +0000 (UTC) Received: from [89.15.238.230] (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 1YKlRc-0006Jr-CQ; Mon, 09 Feb 2015 11:19:56 +0100 Date: Mon, 9 Feb 2015 11:19:54 +0100 From: Matthias Apitz To: Thomas Dickey Subject: Re: key Shift+Prior not working for scroll-up in xterm but in urxvt Message-ID: <20150209101953.GA2158@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> <20150206130348.GA2764@c720-r276659> <20150209095405.GA32691@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: <20150209095405.GA32691@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.15.238.230 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: Mon, 09 Feb 2015 10:20:08 -0000 El día Monday, February 09, 2015 a las 04:54:05AM -0500, Thomas Dickey escribió: > On Fri, Feb 06, 2015 at 02:03:48PM +0100, Matthias Apitz wrote: > > 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 > > not immediately: my keyboard does not have a mode_switch key > (unless I tinker with xmodmap...). My keyboard does not has this key either; I'm using xmodmap and redefine the so called Windows-key with: xmodmap -e "keycode 0x40 = Mode_switch" If you want to test my problem, you could use this. About the rest of your hints I have to think deeper; Thx 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.