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

New font mode doesn't need the telnet binary option either.

parent ee59151a
No related branches found
No related tags found
No related merge requests found
...@@ -261,10 +261,12 @@ function load_font(slot, data, force) ...@@ -261,10 +261,12 @@ function load_font(slot, data, force)
} }
log(LOG_DEBUG, format("CTerm load_font: slot %u with %u bytes", slot, data.length)); log(LOG_DEBUG, format("CTerm load_font: slot %u with %u bytes", slot, data.length));
load('sbbsdefs.js'); load('sbbsdefs.js');
if (cterm_version < cterm_version_supports_b64_fonts) {
if(!(console.telnet_mode&TELNET_MODE_OFF)) { if(!(console.telnet_mode&TELNET_MODE_OFF)) {
if(!console.telnet_cmd(TELNET_WILL, TELNET_BINARY_TX, 1000)) if(!console.telnet_cmd(TELNET_WILL, TELNET_BINARY_TX, 1000))
mswait(100); // Insure we enter binary mode *before* sending font data mswait(100); // Insure we enter binary mode *before* sending font data
} }
}
var fsize = fontsize(data.length); var fsize = fontsize(data.length);
if(fsize < 0) { if(fsize < 0) {
log(LOG_WARNING, format("CTerm Unsupported font file size: %lu bytes", data.length)); log(LOG_WARNING, format("CTerm Unsupported font file size: %lu bytes", data.length));
...@@ -279,8 +281,10 @@ function load_font(slot, data, force) ...@@ -279,8 +281,10 @@ function load_font(slot, data, force)
} }
if(fsize == 1 && console.cterm_version < 1168) if(fsize == 1 && console.cterm_version < 1168)
console.write("\x00\x00"); // Work-around cterm bug for 8x14 fonts console.write("\x00\x00"); // Work-around cterm bug for 8x14 fonts
if (cterm_version < cterm_version_supports_b64_fonts) {
if(!(console.telnet_mode&TELNET_MODE_OFF)) if(!(console.telnet_mode&TELNET_MODE_OFF))
console.telnet_cmd(TELNET_WONT, TELNET_BINARY_TX); console.telnet_cmd(TELNET_WONT, TELNET_BINARY_TX);
}
console.cterm_fonts_loaded[slot] = true; console.cterm_fonts_loaded[slot] = true;
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment