Skip to content
Snippets Groups Projects
Commit 896f42fe authored by deuce's avatar deuce
Browse files

CTerm_Version should always be a string.

parent 9c5cb271
No related branches found
No related tags found
No related merge requests found
......@@ -92,14 +92,14 @@ function loadfont()
// alert("Response: "+printable);
if(response.substr(0,21) != "\x1b[=67;84;101;114;109;") { // Not CTerm
bbs.mods.CTerm_Version=0;
bbs.mods.CTerm_Version='0';
console.ctrlkey_passthru=oldctrl;
if(showprogress)
writeln("Not detected.");
return(0);
}
if(response.substr(-1) != "c") { // Not a DA
bbs.mods.CTerm_Version=0;
bbs.mods.CTerm_Version='0';
console.ctrlkey_passthru=oldctrl;
if(showprogress)
writeln("Not detected.");
......
......@@ -44,12 +44,12 @@ function pickfont()
// alert("Response: "+printable);
if(response.substr(0,21) != "\x1b[=67;84;101;114;109;") { // Not CTerm
bbs.mods.CTerm_Version=0;
bbs.mods.CTerm_Version='0';
console.ctrlkey_passthru=oldctrl;
return(0);
}
if(response.substr(-1) != "c") { // Not a DA
bbs.mods.CTerm_Version=0;
bbs.mods.CTerm_Version='0';
console.ctrlkey_passthru=oldctrl;
return(0);
}
......
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