% ndialog -- dialog core functions % David Parsons % Wed Jan 16 08:38:53 PST 2008 #Core functions These functions are exactly like the corresponding libdialog functions, for the unsurprising reason that they need to do much the same as they would in libdialog. =init\_dialog()= [`init_dialog()`](class:example) initialize the dialog library; start curses, allocate colors, clear the screen, allocate the helpline, and so on. After `init_dialog()`, the screen will be cleared, set to the window color, and (invisibly) broken up into the form window and a one-line helpline window at the bottom of the screen. =end\_dialog()= [`end_dialog()`](class:example) Close up shop and shut curses down. =use\_helpline()= [`use_helpline(message)](class:example) Set the helpline to the given message. =get\_helpline()= [`get_helpline()`](class:example) Return a pointer to the existing helpline. =restore\_helpline()= [`restore_helpline(message)`](class:example) I'm not sure what this is supposed to do; it's aliased to `use_helpline()` right now. =strwidth()= [`strwidth(message)`](class:example) Return how many columns wide a message is. =strdepth(), strheight()= [`strdepth(message)`](class:example) [`strheight(message)`](class:example) Return how many rows deep a message is. ->[return to main ndialog page](index.html#INDEX)<-