I posted the following to the Discussion tab. I thought it would be best
to also post to the email list, in case someone looks here.
------------------------
I wanted to thank Greg Jung for sending a very helpful response. It
might benefit some others.
Run "C:\msys64\usr\bin\bash.exe --login -i" from within the windows 7
command prompt ("dos shell") and get a bash prompt. Then run the curses
(compiled with pdcurses) program with "./txu1-tpl-eg1.exe" - it runs
perfectly! Arrow keys work, everything looks / functions perfectly.
Next, make a copy of the command prompt desktop icon, change the target
to the command line given above, it works perfectly.
------------------------
I'm still confused about the difference between 1) mintty, 2) winpty
from within mintty, 3) bash.exe from within dos window, and 4) dos
window itself. For example, I notice that mc runs poorly under the
bash.exe environment. Arrow keys don't work, colors get messed up, it is
slow. Oddly, mc (same exe) runs perfectly when run directly from dos shell.
Obviously, I don't really understand what's going on. It would be nice
if someone who understands more about this could post some advice,
related to different options for compiling and running curses
applications under msys2.
Anyway, at least the bash.exe option is good progress.
Daniel
On 1/26/2016 10:30 AM, Daniel Goldman wrote:
> Related to this post, winpty (never heard of it before) at least
> partially fixed the curses problem I had posted on the msys2 discussion
> forum before, and no clues had emerged.
>
> The curses program, plus simple test curses programs I had presented,
> previously produced error messages like the following and crashed:
>
> $ txu1-tpl-eg1.exe
> Redirection is not supported.
> $
>
> With "winpty txu1-tpl-eg1.exe" the program at least starts up, looks
> perfect visually. The program responds to keyboard commands (eg, q to
> quit). Pressing ENTER goes to a submenu, and that works.
>
> Unfortunately, the arrow keys, PgUp, PgDn, Home, End keys don't work.
> They work correctly when the program runs under a windows 7 command
> window. Does anybody have a clue why the arrow keys do not work for
> running a pdcurses program under mintty / winpty?
>
> Thanks,
> Daniel
>
> PS -
> http://blog.toonormal.com/2012/11/17/gcc-msys-mintty-pdcurses-winpty-and-good-times-in-the-shell/
> is a related post I found, in case helpful for anyone.
>
> On 1/26/2016 2:52 AM, Ray Donnelly wrote:
>>>
>>> When I run gdb in the mingw64 environment (I haven't tested others), it
>>> behaves weirdly. Specifically, If I press the up arrow, instead of scrolling
>>> through the previous commands, it moves the caret up on the screen, and from
>>> there just goes crazy (printing text and seemingly random places on the
>>> screen, no accepting commands, etc.)
>>
>> Yes. It's to do with mintty. Use "winpty gdb" instead. We should
>> probably make wrappers like we do for most other REPL things. File a
>> bug if you wouldn't mind (or better, make pull requests - follow the
>> examples in python or something like that).
>>
>
> ------------------------------------------------------------------------------
> 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=267308311&iu=/4140
> _______________________________________________
> Msys2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/msys2-users
>
------------------------------------------------------------------------------
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