Portable Mintty for Julia

Hi,

While we wait for a better Windows Terminal, I’d like to share my setup with those who also want colored emoji support on Windows 10.

Requirements: Julia 1.x.x, 64bit Windows 10
How to use it: Unzip and run startjulia.exe
How it works: It uses an Autohotkey script to locate your latest installed copy of Julia 1.x.x, and renames the user folder inside \CygwinPortable\App\Runtime\Cygwin\Home to your current Windows user’s name so Mintty will function properly. It then starts Julia via Mintty with a Windows shell script. startjulia.exe is just a renamed copy of Autohotkey v2 H executable. The script is in startjulia.ahk.


mintty.7z

Just a note that a better Windows terminal is here and can by now be installed quite painlessly from the Microsoft store or via Chocolatey:

1 Like

I installed Windows Terminal (Preview) but can’t get the emojis to work for some reason. Emojis have been working in VS Code and I know I can at least type them with the onscreen keyboard :ok_hand:. My json setting file also look like the ones I see online from the new terminal’s reviewers. I’ll try again later or wait for a future update.

Current version of Windows Terminal does not display emojis input in cmd or PowerShell, it shows the replacement character instead. It seems to work fine in Windows Subsystem for Linux.
https://github.com/microsoft/terminal/issues/1503

Things get worse in the REPL, the replacement character is shown instead of emojis everywhere. I hope they fix this soon.

Note that while now have a proper terminal on Windows, julia (or rather the julia specific version of libuv we are using) currently doesn’t use the modern console APIs on windows. That might explain some issues you might see with the new Windows Terminal and julia specifically.

1 Like

This has nothing to do with Julia or the libuv console APIs — in the linked issue they reproduced the same problem in PowerShell — not surprising, since Unicode rendering is really up to the terminal.
Apparently Microsoft’s “modern” terminal still doesn’t support Unicode fallback fonts?