From owner-freebsd-current@FreeBSD.ORG Mon Jul 30 03:58:07 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 641BC16A419 for ; Mon, 30 Jul 2007 03:58:07 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id D007D13C46B for ; Mon, 30 Jul 2007 03:58:06 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.1/8.14.1/NETPLEX) with ESMTP id l6U3w5AD017811; Sun, 29 Jul 2007 23:58:05 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-3.0 (mail.netplex.net [204.213.176.10]); Sun, 29 Jul 2007 23:58:05 -0400 (EDT) Date: Sun, 29 Jul 2007 23:58:05 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: delphij@freebsd.org In-Reply-To: <6eb82e0707290944s2531e32cuf50c9f7c60509070@mail.gmail.com> Message-ID: References: <20070729124116.GA4489@saltmine.radix.net> <20070729135024.GA473@saltmine.radix.net> <20070729144202.GA17101@saltmine.radix.net> <46ACA806.5030704@FreeBSD.org> <6eb82e0707290944s2531e32cuf50c9f7c60509070@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Rong-en Fan , current@freebsd.org Subject: Re: TERM={xterm-r5,xterm-r6} behaving badly with man(1) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jul 2007 03:58:07 -0000 On Mon, 30 Jul 2007, Rong-en Fan wrote: > > Thomas has explained me in details about what his has. Judge from > Daniel's original post, I would like to know which libncurses.so that > xterm is using, and is devel/ncurses or devel/ncurses-devel installed? > > The ncurses update was in late Jan and enable widec support in Mar, IIRC. > Since then, only few non-functional Makefile changes to base's ncurses > part. BTW, base's less is updated in early Jun, not sure if it's related. It looks like the less import broke this behavior (inhibiting ti/te when invoked as more). See the changes between r1.7 and r1.8 of contrib/less/screen.c. $ cvs diff -u -r1.7 -r1.8 screen.c ... - /* - * This loses for terminals with termcap entries with ti/te strings - * that switch to/from an alternate screen, and we're in quit_at_eof - * (eg, more(1)). - */ - if (!quit_at_eof && !less_is_more) { - sc_init = ltgetstr("ti", &sp); - sc_deinit = ltgetstr("te", &sp); - } - + sc_init = ltgetstr("ti", &sp); if (sc_init == NULL) sc_init = ""; + sc_deinit= ltgetstr("te", &sp); if (sc_deinit == NULL) sc_deinit = ""; This seems to fix it: Index: main.c =================================================================== RCS file: /opt/FreeBSD/cvs/src/contrib/less/main.c,v retrieving revision 1.9 diff -u -r1.9 main.c --- main.c 23 Jun 2007 15:28:00 -0000 1.9 +++ main.c 30 Jul 2007 02:58:39 -0000 @@ -165,7 +165,7 @@ quit(QUIT_OK); } - if (less_is_more && get_quit_at_eof()) + if (less_is_more || get_quit_at_eof()) no_init = quit_if_one_screen = TRUE; -- DE