Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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?


To 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/ECMA48Decode...

* 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...

* 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/TUIVIOWidget...


I 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.


No, you would use ncurses, or a library built on it (like Curses Development Kit, CDK)


This is for terminal/ttys, this isn't something you'd use for game dev. There are tons of other tools out there for that




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: