This commit is contained in:
Ren RenJuan 2014-01-19 05:33:21 +00:00
parent b3502f14d8
commit 70d3b2d24e
1 changed files with 16 additions and 14 deletions

View File

@ -231,7 +231,7 @@ void mdCommander::driver() {
flushCommand(targetCmd,x); flushCommand(targetCmd,x);
doHeader(); doHeader();
} }
else {say((char *)"Invalid Command Index"); beeo*();} else {say((char *)"Invalid Command Index"); beep();}
break; break;
} }
continue; continue;
@ -289,14 +289,12 @@ void mdCommander::greet() {
const char *title="AusReg Cliever Commander", const char *title="AusReg Cliever Commander",
*warn="NB: this program is meant to be powerful and fast, not safe or user friendly", *warn="NB: this program is meant to be powerful and fast, not safe or user friendly",
*prompt="Enter ? or command", *prompt="Enter ? or command";
*advise="When done: rm /tmp/ausreg-cd.lock to make this program available for others on this host";
sprintf(theBanner,banner,thisConfig->shellProcess,thisConfig->daemonProcess); sprintf(theBanner,banner,thisConfig->shellProcess,thisConfig->daemonProcess);
mvprintw(0,(col-strlen(banner))/2,"%s",theBanner); mvprintw(0,(col-strlen(banner))/2,"%s",theBanner);
mvprintw(row/2,(col-strlen(title))/2,"%s",title); mvprintw(row/2,(col-strlen(title))/2,"%s",title);
mvprintw((row/2)+2,(col-strlen(warn))/2,"%s",warn); mvprintw((row/2)+2,(col-strlen(warn))/2,"%s",warn);
mvprintw((row/2)+6,(col-strlen(advise))/2,"%s",advise);
mvprintw(row-2,1,"%s",prompt); mvprintw(row-2,1,"%s",prompt);
refresh(); refresh();
acceptingInput = true; acceptingInput = true;
@ -347,17 +345,21 @@ void mdCommander::eppMainMenu() {
mvprintw(16,10," D - delete"); mvprintw(16,10," D - delete");
mvprintw(17,10," T - transfer"); mvprintw(17,10," T - transfer");
mvprintw(19,10,"IO"); mvprintw(19,10,"IO");
mvprintw(22,10," v<letter> - vi/xmledit the schema "); mvprintw(22,10," v<letter> - vi/xmledit the XML");
mvprintw(23,10," w<letter> - write blank XML form for 1 above"); mvprintw(23,10," V<n> - vi/xmledit the XSDs");
mvprintw(24,10," W - write blank forms for all"); mvprintw(24,10," w<letter> - write blank XML form for 1 above");
mvprintw(25,10," W - write blank forms for all");
mvprintw(8,50, "Commands are defined by the XSDs"); mvprintw(7,50, "Commands are defined by the XSDs");
mvprintw(9,50, "in ./resources. These are migrating to"); mvprintw(8,50, "in ./resources. These are migrating to");
mvprintw(10,50,"a what's at 'XML TO USE IN AC' @"); mvprintw(9,50,"a what's at 'XML TO USE IN AC' @");
mvprintw(11,50,"dnseppus.meansofproduction.biz/doc, currently"); mvprintw(10,50,"dnseppus.meansofproduction.biz/doc, currently");
mvprintw(12,50,"a mix of that and those in the 2007 toolkit."); mvprintw(11,50,"a mix of that and those in the 2007 toolkit.");
mvprintw(15,50,"If no XSD loaded you'll see"); mvprintw(13,50,"If no XSD loaded you'll see");
mvprintw(16,50,"stubs in the internal editor."); mvprintw(14,50,"stubs in the internal editor.");
mvprintw(16,50," n = 1 : epp-1.0.xsd 2: domain-1-0.xsd 3: contact-1.0.xsd");
mvprintw(17,50," 4: registrant-1.0.xsd 5: host-1-0.xsd 6: kv-1.0.xsd");
say((char *)"Action letter or ? to exit"); say((char *)"Action letter or ? to exit");
} }