Skip to content
Snippets Groups Projects
Commit 66fde075 authored by rswindell's avatar rswindell
Browse files

Make ;cat command not expand @-codes or terminate on Ctrl-Z char.

parent ea981bf1
No related branches found
No related tags found
No related merge requests found
...@@ -121,7 +121,7 @@ function str_cmds(str) ...@@ -121,7 +121,7 @@ function str_cmds(str)
if(word=="LIST" || word=="TYPE" || word=="CAT") { if(word=="LIST" || word=="TYPE" || word=="CAT") {
if(bbs.check_syspass()) { if(bbs.check_syspass()) {
str=str.substr(4); str=str.substr(4);
console.printfile(get_filename(str), P_CPM_EOF); console.printfile(get_filename(str), word == "CAT" ? P_NOATCODES : P_CPM_EOF);
return; return;
} }
} }
...@@ -855,8 +855,12 @@ function get_arg(str, parm, history) ...@@ -855,8 +855,12 @@ function get_arg(str, parm, history)
write(format("%s: ", parm)); write(format("%s: ", parm));
str=console.getstr(128, K_MSG, history); str=console.getstr(128, K_MSG, history);
} }
if(str && history.indexOf(str) < 0) if(str) {
var i = history.indexOf(str);
if(i >= 0)
history.splice(i, 1);
history.unshift(str); history.unshift(str);
}
return(str); return(str);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment