Skip to content
Snippets Groups Projects
Commit 5cb82e10 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Previous file support from the [R]emove and [D]ownload commands.

More support for moving backwards through file searches/listing types.
parent cb9fc415
No related branches found
No related tags found
No related merge requests found
......@@ -811,7 +811,9 @@ int sbbs_t::listfileinfo(uint dirnum, const char *filespec, long mode)
|| mode==FI_OFFLINE) {
SYNC;
// CRLF;
SAFECOPY(str, "VEQRNP\b-\r");
SAFECOPY(str, "VEQRN\r");
if(m > 1)
SAFECAT(str, "P-\b");
if(dir_op(dirnum)) {
mnemonics(text[SysopRemoveFilePrompt]);
SAFECAT(str,"FMC");
......@@ -1049,7 +1051,9 @@ int sbbs_t::listfileinfo(uint dirnum, const char *filespec, long mode)
xfer_prot_menu(XFER_DOWNLOAD);
SYNC;
mnemonics(text[ProtocolBatchQuitOrNext]);
sprintf(str,"B%cN\r",text[YNQP][2]);
SAFEPRINTF(str,"B%cN\r",text[YNQP][2]);
if(m > 1)
SAFECAT(str, "\b-");
for(i=0;i<cfg.total_prots;i++)
if(cfg.prot[i]->dlcmd[0]
&& chk_ar(cfg.prot[i]->ar,&useron,&client)) {
......@@ -1066,6 +1070,12 @@ int sbbs_t::listfileinfo(uint dirnum, const char *filespec, long mode)
break;
}
}
else if(ch == '\b' || ch == '-') { /* previous */
m--;
if(m)
m--;
continue;
}
else if(ch!=CR && ch!='N') {
for(i=0;i<cfg.total_prots;i++)
if(cfg.prot[i]->dlcmd[0] && cfg.prot[i]->mnemonic==ch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment