lilt icon indicating copy to clipboard operation
lilt copied to clipboard

Possibility of a Windows port

Open sskras opened this issue 4 years ago • 2 comments

What do you think: would it be hard to port lilt to Windows OS ?

sskras avatar Feb 19 '22 12:02 sskras

Hmm... I think it depends on what you wanted to do with it.

I think if you just wanted to get it working such that you could feed it terminal control sequences and have it draw them correctly, it would be quite easy. That code is all pretty straightforward and just relies on SDL, which is certainly available for Windows. One would just rip out the stuff that forks and runs a shell and such.

Beyond that, it might depend. Cygwin has an SDL package, so I think one could probably build a cygwin-friendly version that could run cygwin's bash and other tools without much difficulty. If one wanted to use it to run native Windows console applications and stuff like cmd.exe, it might take a bit more work or a lot more work for things that use the Windows console API (though my understand is that that is being deprecated, though I don't follow Windows very closely).

MurphyMc avatar Feb 21 '22 05:02 MurphyMc

Thanks for the insights!

I didn't think about using Windows console apps, will do later.

But I definitely would like to avoid using Cygwin. I would like to use Midipix layer for compilation, if any:)

sskras avatar Feb 21 '22 08:02 sskras