2016-07-20 Fred Gleason <fredg@paravelsystems.com>

* Added a 'save' command to rdclilogedit(1) in
	'utils/rdclilogedit/rdclilogedit.cpp' and
	'utils/rdclilogedit/rdclilogedit.h'.
	* Added a 'saveas' command to rdclilogedit(1) in
	'utils/rdclilogedit/rdclilogedit.cpp' and
	'utils/rdclilogedit/rdclilogedit.h'.
This commit is contained in:
Fred Gleason
2016-07-20 18:00:03 -04:00
parent 60ce6c966d
commit 8e0d803ba3
4 changed files with 116 additions and 9 deletions

View File

@@ -27,7 +27,8 @@ void MainObject::Help(const QStringList &cmds) const
if(cmds.size()==1) {
printf("\n");
printf("The following commands are available:\n");
printf("?, bye, exit, help, list, listlogs, load, quit, unload\n");
printf("?, bye, exit, help, list, listlogs, load, quit, save, saveas,\n");
printf("setcart, unload\n");
printf("\n");
printf("Enter \"? <cmd-name>\" for specific help.\n");
printf("\n");
@@ -67,6 +68,22 @@ void MainObject::Help(const QStringList &cmds) const
printf("\n");
processed=true;
}
if(verb=="save") {
printf("\n");
printf(" save\n");
printf("\n");
printf("Save the contents of the edit buffer.\n");
printf("\n");
processed=true;
}
if(verb=="saveas") {
printf("\n");
printf(" saveas <log-name>\n");
printf("\n");
printf("Save the contents of the edit buffer to new log <log-name>.\n");
printf("\n");
processed=true;
}
if(verb=="setcart") {
printf("\n");
printf(" setcart <line> <cart-num>\n");