How to create a GUI-like text interface in C

c, command-line-interface, unix

Solution

You could have a look at CDK-- project home page.

This is a set of widgets for Menus, pulldowns etc. wrapped around the basic ncurses library so your coding is at a much higher level and a lot of the intricacies and gotchas of ncurses are already dealt with.

Problem

I have seen a few programs that use simple GUI-like interfaces made out of text. A good example would be `links` (see screenshots below). Are there any C libraries for creating this sort of thing out there? I would ideally like mouse support but that is not strictly necessary. Cross-platform is good but I really only need it for *nix-like systems (including mac). I don't have a great deal of experience with C but I know my way around it, coming from C++. If libraries aren't available, how would one go about coding this kind of thing from scratch? Screenshots of the kind of thing I want: EDIT: Yes, I know about `curses`/`ncurses`, but does anyone know of any good tutorials to make this kind of program with it?

Original source