I had a similar issue with Mercurial (hg)+OpenSSH, Python and MinTTY, but under MSYS instead of CygWin. I had this exact same problem with mysql
as well. Nonetheless, as far as I can tell, both this and my issue were caused by MinTTY not being to handle applications that uses the native Windows console functions.
I solved my issue by following the solution found in comment 64 of https://code.google.com/p/mintty/issues/detail?id=56#c64
With the winpty (https://github.com/rprichard/winpty) project compiled and installed in my path, I was able to run native Python (in interactive mode), Mercurial and MySQL from the MinTTY shell without special builds or switches (such as python -i
). All I need was to append console.exe
or console
before the python
or hg
command. For convenience, I added aliases such as alias hg="console.exe hg"
so I can use the same commands whether I'm in a Linux shell or a Windows MinTTY bash shell.
mintty -e psql databasename -
to work. – Rosetterosewallpsql databasename
in MINTTY already. – Visitation