TERM={xterm-r5,xterm-r6} behaving badly with man(1)

Xin LI delphij at delphij.net
Thu Aug 2 14:41:23 UTC 2007


Daniel Eischen wrote:
> On Mon, 30 Jul 2007, Rong-en Fan wrote:
[...]
> 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.
[...]
> 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;

This sounds reasonable to me, actually more(1) implies quit_at_eof.

To re@, may I commit this change against -HEAD?

Cheers,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070802/62608b5b/signature.pgp


More information about the freebsd-current mailing list