[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7. Required Calls

Libtui must be initialized before your application can use the available features. There are two ways to do this:

 
tuiInitMore(NULL);
or
 
tuiInit(NULL);

The tuiInitMore function handles curses initialization whereas tuiInit expects you to do it in your application. The parameter is a callback for internal errors so that you can clean up your application's state before quitting. Use NULL if you don't need that.

Now you can begin using Libtui features. As mentioned in the Overview section, each of the features has a start and end function. See section 2. Overview.

TODO: show examples, etc...

After the application is through running, it is recommended to call an exit function for Libtui if tuiInitMore was used to initialize libtui:

 
tuiExitMore(0);

The parameter is the error number. 0 represents success (no error).


[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by on May, 16 2001 using texi2html