From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 20 03:45:49 2015 Return-Path: Delivered-To: freebsd-hackers@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 33A10E46; Fri, 20 Feb 2015 03:45:49 +0000 (UTC) Received: from mail-pd0-x230.google.com (mail-pd0-x230.google.com [IPv6:2607:f8b0:400e:c02::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F14E2766; Fri, 20 Feb 2015 03:45:48 +0000 (UTC) Received: by pdjy10 with SMTP id y10so4632353pdj.6; Thu, 19 Feb 2015 19:45:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=LVly2RZEde6lZPfTpSLuv9Q43sN1pjk3RBrUMQecGoo=; b=Jo8Q9LeLilHZ30593ytYkUKsFXDVjDPK+ruauPAiXwstZc4ThRM9uFV9iEP3GB7u6Q j8xG6RnM9krhuqAJAk35UndNwfXuc5AmOfj004tcQ0hXgPiNm81D0B97jdgYFAsDXqAA JXgXyITevDNdFEaZISbl/ofEUPZB/a5dwL7DGzWUvxI+IK9RR9j16HWmTNf4tEiht9RP JYODyBbBiPYsV7H2jydjWHttXjfYWQO5WrRsKUsq6/ci547jBvBBhxbkXFykQCalCkAN YCVDubA3TNhspqqn0JY/dk9NTezzqZFKf19IrYQllvkPHxZwGDM01+TxCLt3GUwi1nDS CFFQ== MIME-Version: 1.0 X-Received: by 10.66.118.168 with SMTP id kn8mr12756257pab.45.1424403948566; Thu, 19 Feb 2015 19:45:48 -0800 (PST) Sender: kob6558@gmail.com Received: by 10.67.30.198 with HTTP; Thu, 19 Feb 2015 19:45:48 -0800 (PST) In-Reply-To: References: <54E5232F.3060409@delphij.net> <54E59BF7.40207@freebsd.org> Date: Thu, 19 Feb 2015 19:45:48 -0800 X-Google-Sender-Auth: m6H4sY6Q97SCvsYefjTACvFnmKQ Message-ID: Subject: Re: default pager (csh) From: Kevin Oberman To: Warren Block X-Mailman-Approved-At: Fri, 20 Feb 2015 03:53:03 +0000 Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: Davide Italiano , FreeBSD Hackers , freebsd-current , Xin LI X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2015 03:45:49 -0000 On Thu, Feb 19, 2015 at 5:10 PM, Warren Block wrote: > On Thu, 19 Feb 2015, Julian Elischer wrote: > > On 2/18/15 3:41 PM, Xin Li wrote: >> >>> >>> The _only_ reason that I can think of is that more(1) does not clear >>> screen for certain terminals (done with 'ti' and 'te' sequences), >>> while less(1) when running as less does. >>> >>> The less(1) behavior can be annoying to some people (sometimes even >>> myself when using less to show contents of a file and ^Z to paste >>> them), and unfortunately quite a few of them also happen to be the >>> more vocal ones when it comes to a change. >>> >> >> I find that behaviour infuriating >> >> I page down to a place to get some text on the screen to use as a >> reference, then exit to run a command with that information, and *bam* the >> info I wanted to use has gone away. >> > > It doesn't do that on csh. Or maybe I figured out how to prevent it long > ago and forgot, but all I use is this: > > setenv PAGER "less -RS" > You probably did what I used to do. Modify the termcaps/terminfo to eliminate this behavior. See Exorcising the Evil Alternate Screen . In the past, FreeBSD disabled this by default. It was changed several years ago, but you can change it back as per the aboved referenced article. -- Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com