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

Ensure that ANSI is available

parent 198ec321
No related branches found
No related tags found
No related merge requests found
require("userdefs.js", "USER_ANSI");
function w(str) function w(str)
{ {
console.write(str); console.write(str);
...@@ -196,6 +198,9 @@ function pixel_capability() ...@@ -196,6 +198,9 @@ function pixel_capability()
return ret; return ret;
} }
if (!console.term_supports(USER_ANSI))
exit(0);
if (console.cterm_version < 1316) { if (console.cterm_version < 1316) {
console.pause(); console.pause();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment