On 10. 2. 2016 19:43, Daniel Goldman wrote: > On 2/10/2016 7:52 AM, Baruch Burstein wrote: >> As for the specific issue of running mc directly from the windows >> command prompt, my findings on a Windows 7 machine are that mc, >> presumably through ncurses, sizes itself to the window buffer width >> rather than the actual width, to the actual window height, and does not >> get window resize notifications. What this means is that if I size my >> command prompt window to it's maximum width, mc looks fine. There are >> still at least a couple of issues, specifically that changing the height >> of the window does not in itself prompt a redraw of the screen (although >> pressing a key after the resize fixes this). Also pressing and holding >> an arrow key only moves down one line. running mc directly from the >> mintty/bash prompt works fine. > > That's my same experience. In other words, mc works fine from within a > windows 7 command prompt, with the exception that that windows resize > does not immediately take effect, but requires pressing a key.
I repeated the test on Windows Server 2012 R2 (version number 6.3, i.e. equivalent to Windows 8.1) and the result is the same, garbage. But it seems that after pressing arrow keys and/or entering directories, the file list kind of shows up, so it doesn't seem actually broken, but still displays a lot of garbage. I'm still surprised that mc works fine for you guys. Does your /usr/bin/mc.exe come from MSYS2 (just making sure)? Also, can you check your `TERM` environment variable and output of `chcp`? I found out that if I set `TERM=ansi-nt`, it starts to look a bit better (see attached screenshot), but doesn't accept arrow keys. Do you have Ansicon, Clink, Cmder, ConEmu or anything similar installed and enabled? [snip] > As I explained in previous posts, I tested winpty with the pdcurses app > that runs perfectly under windows, and runs perfectly under the bash.exe > / window 7 "command prompt" combination. The pdcurses app DOES NOT run > correctly under winpty / mintty combination. Arrow keys and other cursor > keys do not work. So I think your wording "attempts" is correct, that > winpty is lacking. I say "winpty program.exe" from within mintty. If > there is some option I might need to be using to make winpty work > better, I'd like to hear. "man winpty" and "winpty --help" fail. I don't think winpty is supposed to be configurable. See bottom of <https://github.com/rprichard/winpty> for at least two environment variables that winpty recognizes. -- David Macek
smime.p7s
Description: S/MIME Cryptographic Signature
------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________ Msys2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/msys2-users
