I find that when launching q from cygwin underneath mintty, the console generally seems to work, however the q) prompt is not displayed. I am just met with a blank line.
I have the latest cygwin, and the latest mintty terminal.
Note that when I launch cygwin using cmd, the q) prompt is there. Just not under mintty. So I have a viable, but not ideal workaround. Various aspects of mintty are coded deep into my muscle memory.
mintty's wikipedia entry states:
Since [mintty] is not based on the standard Windows console, however, programs written specifically for that do not work correctly in mintty
So I suspect that is the cause here. But was wondering if anyone has been able to get kdb/q to work in this setup.
In summary, can the q interpreter be made to fully work under mintty?
mintty is a free and open source terminal emulator for Cygwin, the Unix-like environment for Windows.
DESCRIPTION. Mintty is a terminal emulator for Cygwin with a native Windows user interface and minimalist design. Its terminal emulation is largely compatible with xterm, but it does not require an X server.
MinTTY is the terminal emulator that comes by default with Git for Windows. It has known issues with gh's ability to prompt a user for input. There are a few workarounds to make gh work with MinTTY: Reinstall Git for Windows, checking "Enable experimental support for pseudo consoles".
I realise this is quite an old question, but in case anyone comes across this in future, here's a solution.
You can make use of the "winpty" package from https://github.com/rprichard/winpty/releases
You will want to download the latest 32-bit or 64-bit Cygwin version, depending on which version of Cygwin you have installed. You can then extract the downloaded .tar.gz
file into the cygwin installation dir (e.g. C:/Cygwin64
)
Once you've done this, you can run q with winpty q
e.g.
user@computer ~
$ winpty q
KDB+ 3.5 2017.03.28 Copyright (C) 1993-2017 Kx Systems
w32/ 4()core 4095MB user computer 192.168.1.118 NONEXPIRE
q)1+1
2
q)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With