From c0fab43bcf8249b19835c4fcbaadbae02d689fab Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sat, 7 Mar 2020 23:53:47 +0000
Subject: [PATCH] A small script to set the user's terminal settings (e.g. in
 their client) to match the settings on the BBS-side (e.g. iCE colors
 enabled/disabled).

---
 exec/termsetup.js | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 exec/termsetup.js

diff --git a/exec/termsetup.js b/exec/termsetup.js
new file mode 100644
index 0000000000..aca2631b2f
--- /dev/null
+++ b/exec/termsetup.js
@@ -0,0 +1,9 @@
+require("sbbsdefs.js", 'CON_BLINK_FONT');
+require("userdefs.js", 'USER_ICE_COLOR');
+if(user.settings & USER_ANSI) {
+	if(argv.indexOf("force") >=0 || !(console.status&(CON_BLINK_FONT|CON_HBLINK_FONT))) {
+		var cterm = load({}, "cterm_lib.js");
+		cterm.bright_background(Boolean(user.settings & USER_ICE_COLOR));
+	}
+	console.ansi_getlines();
+}
-- 
GitLab