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

activate_font() now supports an optional wantblink argument

pass true if blink is desireable for blink/high-blink fonts.
parent 2b8aa539
No related branches found
No related tags found
No related merge requests found
......@@ -271,7 +271,7 @@ function supports_sixel()
// undefined: unsure if font activation was successful (e.g. SyncTERM 1.0)
// number: font activation failure (error number)
// false: incorrect usage
function activate_font(style, slot)
function activate_font(style, slot, wantblink)
{
if(style == undefined) {
log(LOG_WARNING, "CTerm activate_font: style is undefined");
......@@ -294,7 +294,7 @@ function activate_font(style, slot)
if(console.status != console_status) {
if(console.status&(CON_BLINK_FONT|CON_HBLINK_FONT))
console.write("\x1b[?34h\x1b[?35h");
console.write("\x1b[?34h\x1b[?35" + (wantblink === true ? "l":"h"));
else
console.write("\x1b[?34l\x1b[?35l");
if(console.status&(CON_HIGH_FONT|CON_HBLINK_FONT))
......
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