dlg_items_ip[0].help_free = true;
dlg_items_ip[0].name_x = 1;
dlg_items_ip[0].name_y = 1;
dlg_items_ip[0].name_len = 20;
dlg_items_ip[0].name_free = 0;
dlg_items_ip[0].text_flen = 30;
dlg_items_ip[0].text_free = false;
dlg_items_ip[0].text_ilen = 0;
dlg_items_ip[0].text_len = 40;
dlg_items_ip[0].text_x = 10;
dlg_items_ip[0].text_y = 1;
int r;
status = dlg_form("Sign in",help,12,60,0,1,dlg_items_ip,&r);
int tmp_status;
tmp_status = -1;
char input_post[] ="/tmp/term_based_tmp_XXXXXX";
tmp_status = mkstemp(input_post);
if(tmp_status<1)//error creating
{
cout<<"error tmp"<<endl;
return 1;
}
status = dialog_editbox("Post",input_post,20,30);
return 1;
}