lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, Dec 7, 2013 at 7:56 PM, Thijs Schreijer <thijs@thijsschreijer.nl> wrote:
Anyone aware of a working curses binding for Windows?

Um, not a perfect answer to your question, unfortunately, but in case problems with curses would end up major obstacle for you:

- firstly, TextAdept is a Lua-based, MIT-licensed text editor, and quoting from its Installation page[1], "The Windows binary includes a precompiled version of pdcurses", so you could try to have a look at how it does that.

  [1]: http://foicica.com/textadept/02_Installation.html

- secondly, there's a very interesting and cross-platform alternative to curses named termbox: https://github.com/nsf/termbox; I had great time using its Go port both on Win32 and Linux; unfortunately I can't say much about any Lua bindings; quick googling found this: https://bitbucket.org/ukaszg/termbox-lua_bindings/src, but no idea in what state it is.

- finally, I've once created a very very *very* barebones LuaJIT (FFI-based, so "pure LuaJIT", aiming to make it simple and that you can quickly check if it works for you or not) library for "gotoxy + readkey" functionality on Windows, also MIT licensed and available at: https://github.com/akavel/thud

/Mateusz Czapliński.