Libraries for displaying a text-mode menu?

前端 未结 3 1363
-上瘾入骨i
-上瘾入骨i 2021-01-03 07:44

In a game project I was working on, I was seriously slowed down -- to the point of giving up -- by how there don\'t seem to be any libraries that can simplify the process of

相关标签:
3条回答
  • 2021-01-03 08:04

    Try ncurses, it is on MIT license, which is much more permissive than GPL. It is very easy to use: menus, dialog boxes, checkboxes - it is all there. It is event-driven like most GUI libraries.

    0 讨论(0)
  • 2021-01-03 08:16

    You want ncurses. It's usually installed along with your distribution.

    It can be kind of a pain, but it's the best method that I know of to get a decent "gui" in command line that isn't just type characters+enter.

    0 讨论(0)
  • 2021-01-03 08:17

    You can also check out CDK, which requires ncurses and provides windows like widgets.

    0 讨论(0)
提交回复
热议问题