|
From: | Michael Goffioul |
Subject: | Re: MSVC compilation patch: less from GnuWin32 |
Date: | Tue, 07 Nov 2006 20:12:17 +0100 |
User-agent: | Thunderbird 1.5.0.7 (Windows/20060909) |
John W. Eaton a écrit :
On 7-Nov-2006, address@hidden wrote: | It's not a bug, it's a feature :-)| | Looking at Less code, it appears that the -X flag disable the terminal| initialization. This code is responsible for calculating the size of the | Windows console, storing the current console buffer, and so on. | When this flag is set, Less does not know about the console size and | does not restore the console state on exit. So it really looks like the | -X flag does not have the same meaning as in the UNIX version. OK. Is there a way to determine that the gnuwin32 version of less is being used? What does less --version return?
Unfortunately, I think this will be rather difficult to do. less --version gives:
less 394 Copyright (C) 1984-2005 Mark Nudelman less comes with NO WARRANTY, to the extent permitted by law. For information about the terms of redistribution, see the file named README in the less distribution. Homepage: http://www.greenwoodsoftware.com/less I don't see an easy solution for this (except letting the user set LESS variable himself and documenting the potential problem). Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |