#include "newt.h" #include int main(void) { newtComponent form, label, b1, b2; newtInit(); newtCls(); newtDrawRootText(0, 0, "Adventure Selector"); newtDrawRootText(-25, -2, "Select your Adventure"); newtRefresh(); sleep(1); newtOpenWindow(40, 15, 40, 6, "Prepare Snow for an adventure?"); b1 = newtButton(5, 2, "Ok"); b2 = newtButton(25, 2, "Cancel"); form = newtForm(NULL, NULL, 0); newtFormAddComponents(form, b1, b2, NULL); newtRunForm(form); newtFormDestroy(form); newtFinished(); }