delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/24/17:27:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <49C9560F.6060504@veritech.com>
References: <49C9560F DOT 6060504 AT veritech DOT com>
Date: Tue, 24 Mar 2009 22:26:56 +0000
Message-ID: <416096c60903241526i421e191fw2b57a722ae75d547@mail.gmail.com>
Subject: Re: 'less': <HOME><END> not working with 'mintty' > v0.3.6
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: Cygwin Tech List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

> I believe that the settings we had previously discussed to get 'less' to
> accept
> <HOME> & <END> as beginning and end of stream respectively,
> stopped working with the 'mintty' v0.3.7 release.
>
> My .lesskey file is:
> --
> \eO1;2A back-line # <UP-ARROW>
> \eO1;2B forw-line # <DOWN-ARROW>

The keycodes for these changed in 0.3.4 due to being incompatible with
xterm. See http://code.google.com/p/mintty/issues/detail?id=3D37

> \eOH goto-line # <HOME> -- Beginning of input
> \eOF goto-end =A0# <END> -- End of input

Those should be fine actually. That's what mintty sends for Home and
End in 'application cursor mode'  since 0.3.7.

Here's what's needed:

\e[1;2A back-line
\e[1;2B forw-line
\e[5;2~ back-screen
\e[6;2~ forw-screen
\eOH goto-line
\eOF goto-end

The back-screen and forw-screen lines allow scrolling by whole pages
at a time by holding down Shift or Ctrl while rolling the mousewheel.
(And don't forget to run lesskey.)

Andy

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019