💾 Archived View for gemini.ctrl-c.club › ~nttp › toys › dukterm captured on 2024-07-09 at 00:31:11. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

DukTerm

Welcome to the DukTerm library! This is a binding of the curses API to the Duktape interpreter. The original pretext, er, goal was to make a Javascript roguelike playable in the Linux console.

To keep it manageable, as of 3 October 2020 DukTerm is very minimal; see the bindings overview (also included in the archive) for details.

DukTerm bindings

Download

DukTerm library release 1 (25K)

DukTerm is open source software under the MIT License (just like Ncurses and Duktape).

MIT License

Building

DukTerm is currently developed on a PC running Debian 10, and built with the following command line:

	gcc --std=c99 main.c dukterm.c -lcurses -lduktape -lm -o dukterm

Duktape is also present in the Termux and Alpine Linux repositories. For other distributions, grab a copy from duktape.org and build it from source.

Duktape website

Last but not least, it's possible to build and run DukTerm in NetBSD 9.2, but extra configuration is needed. Duktape is also available as a binary package there.

Usage

DukTerm is most useful when included into a larger project. That said, it ships with a minimal interpreter able to load and run any Javascript files passed on the command line. The latter is enough to run the examples.

Speaking of which: as suggested above, the archive includes a port of Dungeon Romp, an old roguelike demo that was never completed.

Screenshot of Dungeon Romp running in DukTerm (35K)

Contact and support

Questions or feedback are welcome; see in the archive for my e-mail address, or drop by the #ctrl-c channel on tilde.chat (via good old IRC).

irc:irc.tilde.chat/#ctrl-c

Last updated: 4 October 2020

More small things