News for hackers. Stuff that matters.
Re:Bash and Windows Subsystem for Linux Demo [video] by kazinator on Tuesday February 21, 2017 @11:01PM (#13702915)
Cygwin has its own ANSI/VT100 emulation which is translated to Console API calls.

In the Cygnal project (http://www.kylheku.com/cygnal) I made a few fixes to this code.

With Cygnal you can write a terminal-oriented application using termios and VT100 escape sequences (or a library like ncurses if you wish). You just package it with the cygnal DLL, and any other DLL's. It will run fine in the console window.

For a demo of this, download the Windows installer for the TXR language.

https://bintray.com/kazinator/Binaries/TXR/txr-169

The txr.exe executable happily runs out of the cmd.exe console window with history, multi-line editing, etc. There is not a shred of Win32 code in TXR: it's just (a much enhanced fork of) the Linenoise library which uses termios and ANSI codes. Not a single #ifdef WIN32 in there.

There are no comments on this comment yet.