Skip to content
Snippets Groups Projects
Commit 2961310c authored by rswindell's avatar rswindell
Browse files

Added -B option to load the specified font as the alternate-blink font

and disable blinking. Requires latest and greatest SyncTERM/CTerm.
parent 3f86c608
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
* -H causes the last sent font NOT be made active. (Default is activate font) * -H causes the last sent font NOT be made active. (Default is activate font)
* -S### sets the first font slot to ### default is 256 - number of fonts * -S### sets the first font slot to ### default is 256 - number of fonts
* -P shows progress indicator. * -P shows progress indicator.
* -B loads the alternate/blink font.
* Multiple files can be sent at the same time. * Multiple files can be sent at the same time.
*/ */
...@@ -19,6 +20,7 @@ function loadfont() ...@@ -19,6 +20,7 @@ function loadfont()
var showprogress=false; var showprogress=false;
var firstslot=-1; var firstslot=-1;
var i; var i;
var primary=true;
for(i=0; i<argc; i++) { for(i=0; i<argc; i++) {
if(argv[i].toString().substr(0,1)=="-") { if(argv[i].toString().substr(0,1)=="-") {
...@@ -32,6 +34,9 @@ function loadfont() ...@@ -32,6 +34,9 @@ function loadfont()
case 'P': /* Show progress indicator */ case 'P': /* Show progress indicator */
showprogress=true; showprogress=true;
break; break;
case 'B': /* Load alternate/blink font */
primary=false;
break;
} }
} }
else { else {
...@@ -199,8 +204,11 @@ function loadfont() ...@@ -199,8 +204,11 @@ function loadfont()
} }
if(showprogress) if(showprogress)
write_raw("done.\r\n"); write_raw("done.\r\n");
if(showfont) if(showfont) {
write_raw("\x1b[0;"+(firstslot+filenames.length-1)+" D"); write_raw("\x1b[" + (primary ? '0':'2') +";"+(firstslot+filenames.length-1)+" D");
if(!primary) // Use alternate font (2) for blink, disable blink
write_raw("\x1b[?34h\x1b[?35h");
}
console.ctrlkey_passthru=oldctrl; console.ctrlkey_passthru=oldctrl;
return(0); 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