mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 04:13:39 +00:00
4e278bdb76
more to come in the next 24 hours, this is just the first stable result of 8 hours of hacking so far. The specification format for menus is pretty much hammered out and the beginnings (very humble) of the doc hierarchy are present for an example. It should be quite easy to add a lot more menus quickly to this since I did go somewhat out of my way to make the framework easy to work with. This is NOT the glorious semi-graphical sysinstall (or whatever its name will be) that the install-geeks are working on, this is simply the "son of sysinstall" I've been promising to write in the interim for 2.0.5 and 2.1R (super install doesn't come until 2.2R).
15 lines
163 B
C
15 lines
163 B
C
#include <stdio.h>
|
|
#include <termcap.h>
|
|
|
|
int
|
|
main(int argc, char **argv)
|
|
{
|
|
char buf[4096];
|
|
int i;
|
|
|
|
i = tgetent(buf, argv[1]);
|
|
|
|
printf("%s",buf);
|
|
return 0;
|
|
}
|