Skip to content
Snippets Groups Projects
Commit f5a22fd0 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Use the new console.term_supports() method.

While it's only been around for about 18 years, I'll assume that
anyone updating the exec directory has updated Synchronet as well.
parent 7be3e9c5
No related branches found
No related tags found
1 merge request!488Overhaul LZH code
...@@ -362,11 +362,11 @@ Lightbar.prototype.draw = function(current) ...@@ -362,11 +362,11 @@ Lightbar.prototype.draw = function(current)
if(current!=undefined) if(current!=undefined)
this.current=current; this.current=current;
if(!(user.settings & USER_ANSI)) { if(!console.term_supports(USER_ANSI)) {
alert("ANSI not supported!"); alert("ANSI not supported!");
return; return;
} }
if(!(user.settings & USER_COLOR)) { if(!console.term_supports(USER_COLOR)) {
alert("Colour not supported!"); alert("Colour not supported!");
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment