3 ms·
Total newb here - but lets say i want to make a terminal based video game (think old school text / visuals / menus), will something like Libghostty be something
by siavosh 1y ago
Total newb here - but lets say i want to make a terminal based video game (think old school text / visuals / menus), will something like Libghostty be something relevant to that?
- beepbooptheory 1y agoI imagine if you wanted to make a self-contained application so non-command-line users can play it, then maybe you could use it. Otherwise, probably out of scope of the game itself.
- esseph 1y agoThis is for terminal/ttys, this isn't something you'd use for game dev. There are tons of other tools out there for that
- amiga386 1y agoNo, you would use ncurses, or a library built on it (like Curses Development Kit, CDK)
- JdeBP 1y agoTo expand on the other replies: There are two very different tasks here. This library would be for the task of taking a received ECMA-48 character stream and turning that into a series of actions on some sort of model of a terminal's display, keyboard, and mouse. You are looking at a library for the (roughly) inverse task of taking a model of UI widgets and turning that into a transmitted ECMA-48 character stream. Here's an example of the former: * https://github.com/jdebp/nosh/blob/trunk/source/ECMA48Decoder.h https://github.com/jdebp/nosh/blob/trunk/source/ECMA48Decode... * https://github.com/jdebp/nosh/blob/trunk/source/SoftTerm.h https://github.com/jdebp/nosh/blob/trunk/source/SoftTerm.h Here's an example of the latter: * https://github.com/jdebp/nosh/blob/trunk/source/ECMA48Output.h https://github.com/jdebp/nosh/blob/trunk/source/ECMA48Output... * https://github.com/jdebp/nosh/blob/trunk/source/TUIDisplayCompositor.h https://github.com/jdebp/nosh/blob/trunk/source/TUIDisplayCo... * https://github.com/jdebp/nosh/blob/trunk/source/TUIVIO.h https://github.com/jdebp/nosh/blob/trunk/source/TUIVIO.h * https://github.com/jdebp/nosh/blob/trunk/source/TUIVIOWidgets.h https://github.com/jdebp/nosh/blob/trunk/source/TUIVIOWidget...