Commit b1265fe5 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Don't disable blink when 'wantblink=true' in a section.

Previously, if a blink or high-blink font was specified in a font section
it was assumed that you did not want the terminal to actually blink the glyphs
displayed with that/those fonts. In some cases, blink may be preferable, so
if wantblink=true, then leave blink enabled on the terminal for blink/
high-blink fonts.
parent cde9bd56
......@@ -34,7 +34,7 @@ function fonts(key)
if(parseInt(p, 10) || slotnames[p]) { // load
load_font(slotnames[p] ? slotnames[p] : p, obj[p]);
} else { // activate
if(p == 'requirements')
if(p == 'requirements' || p =='wantblink')
continue;
var slotval = slotnames[obj[p]];
var slotnum = parseInt(slotval, 10);
......@@ -51,7 +51,7 @@ function fonts(key)
filename = obj[p] + '.f' + charheight;
load_font(slotnum, filename);
}
if(cterm.activate_font(cterm.font_styles[p], slotval == undefined ? obj[p] : slotnum) == false)
if(cterm.activate_font(cterm.font_styles[p], slotval == undefined ? obj[p] : slotnum, obj.wantblink) == false)
log(LOG_WARNING, "Failed to activate font: " + cterm.font_styles[p]);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment