There's a new package winpty-git which can also be used. For example:

alias cmd="winpty cmd"
alias python="winpty python"


2014-08-27 0:32 GMT-03:00 Matthieu Vachon <[email protected]>:

> On Tue, Aug 26, 2014 at 10:18 PM, Renato Silva <[email protected]>
> wrote:
> > Hello guys. Just out of curiosity, what terminal are you using? I've
> never
> > seen interactive python/ruby/cmd.exe/etc working on mintty, python -i for
> > instance does show a prompt, but then the arrow keys are useless.
> >
>
> The `mintty` console does indeed not work for most native interactive
> windows applications (this includes native installers and mingw32/64
> applications) because they see it as I pipe and not as an interactive
> console. Hence, they often disable their interactive mode in this
> case.
>
> I have a second console in my task bar which is simple shortcut to
> `<msys_path>/usr/bin/sh.exe --login -i` for those cases. I do it like
> this because even when using some command flag (like python -i), it's
> still not a full fledge interactive environment like you said.
>
> This is by design in mintty. The famous mintty issue #56
> (https://code.google.com/p/mintty/issues/detail?id=56) has a lengthy
> discussion about all this (but I see you already know it Renato :))
>
> However, and it needs to be known, native msys2 application does work
> correctly with mintty. For example, installing ruby using `pacman -S
> msys/ruby` and then using `irb` in mintty works correctly as it
> "knowns" it's a real console and not a pipe (I would be very delighted
> to know how this works exactly). Same thing when installing `pacman -S
> msys/python` and using simply `python`, it works even in mintty.
>
> In most cases, the `msys` version should be used where possible.
>
> Regards,
> Matt
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> _______________________________________________
> Msys2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/msys2-users
>
------------------------------------------------------------------------------
Slashdot TV.  Video for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to