Console crashes reproducibly on Windows 7, when less.exe (http://www.greenwoodsoftware.com/less/index.html) is started.
It's not clear whether the "culprit" is less.exe or console.exe or Windows. less.exe used to work fine within console in Windows XP and Windows 2000. less.exe works fine in a "normal" cmd window in Windows 7. console.exe worked fine so far with the other programs I've tried out.
Maybe console gets upset by some terminal control sequence sent by less.exe; however, this does not explain why this had worked in earlier Windows versions.
There is a bug report about that, but for the moment I have no idea why it does it and how to fix it.
The problem is probably due to the way less.exe works with console screen buffers. Console.exe currently cannot handle that. Cygwin's less works fine, you might want to try it…
I do have a fix for this, but it's quite a bit of work…
Maybe this information is helpful: I just found out that less.exe works if it is invoked with the -X option. According to the documentation, this option has the effect to deactivate termcap init/deinit strings.
I just reproduced this. It was a bit confusing because it happened on a new box and I was reproducing my working dev environment. For me it happens using cmd and powershell using gnuwin32's version of less.exe (see version infromation below).
The fix was relatively easy: I rearranged my Windows Path so that cmd and PowerShell use MinGW/msys less.exe instead of GNUWin32's less.exe.
I use mingw/msys instead of cygwin. And I have been for a few years. Ideally if you have a complete cygwin environment you can just figure out the build options for less and build it the right way. It's possible that all that needs to be done is building a new version.
My versions of less.exe:
gnuwin32 version that crashes console
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.
msys version that works
Copyright (C) 1984-2009 Mark Nudelman
I hope this helps anyone that runs into a similar situation.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.