From 2ae553e6980f1729db88e714bb64179f5e13568e Mon Sep 17 00:00:00 2001
From: Rob Swindell <rob@synchro.net>
Date: Sat, 12 Sep 2020 15:20:35 -0700
Subject: [PATCH] Execute the "termsetup" module after calling the
 user_defaults function.

This was done in the default/classic command shell, but no others.
The termsetup module handles terminal setup tasks that should correspond
with the user's configuration of their terminal preferences (e.g. iCE colors,
alternative fonts). If escape sequences need to be sent to the terminal
server (the BBS) to coordinate the settings, this is the module that does
that.
---
 exec/major.src    | 3 ++-
 exec/pcboard.src  | 3 ++-
 exec/renegade.src | 3 ++-
 exec/sdos.src     | 3 ++-
 exec/simple.src   | 3 ++-
 exec/wildcat.src  | 3 ++-
 exec/wwiv.src     | 1 +
 7 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/exec/major.src b/exec/major.src
index 0365bce932..1e56d75383 100644
--- a/exec/major.src
+++ b/exec/major.src
@@ -2,7 +2,7 @@
 
 # MajorBBS Clone Command Shell for Synchronet
 
-# $Id: major.src,v 1.12 2020/04/23 02:46:08 rswindell Exp $
+# $Id: major.src,v 1.13 2020/09/12 02:46:08 rswindell Exp $
 
 # @format.tab-size 8, @format.use-tabs true
 
@@ -132,6 +132,7 @@ cmdkey A
 
 	cmdkey A
 		user_defaults
+		exec_bin "termsetup"
 		end_cmd
 
 	cmdkey X
diff --git a/exec/pcboard.src b/exec/pcboard.src
index 93dc2b6e5b..d360f3ed65 100644
--- a/exec/pcboard.src
+++ b/exec/pcboard.src
@@ -2,7 +2,7 @@
 
 # PCBoard v15.1 menu/command emulation
 
-# $Id: pcboard.src,v 1.13 2020/04/23 02:46:09 rswindell Exp $
+# $Id: pcboard.src,v 1.14 2020/09/12 02:46:09 rswindell Exp $
 
 # @format.tab-size 8, @format.use-tabs true
 
@@ -219,6 +219,7 @@ cmdstr G
 
 cmdstr W
 	user_defaults
+	exec_bin "termsetup"
 	end_cmd
 
 cmdstr O
diff --git a/exec/renegade.src b/exec/renegade.src
index 53619df9d0..a16b089afb 100644
--- a/exec/renegade.src
+++ b/exec/renegade.src
@@ -1,6 +1,6 @@
 # renegade.src
 
-# $Id: renegade.src,v 1.16 2020/04/23 02:46:09 rswindell Exp $
+# $Id: renegade.src,v 1.16 2020/09/12 02:46:09 rswindell Exp $
 
 # @format.tab-size 8, @format.use-tabs true
 
@@ -155,6 +155,7 @@ cmdkey O
 
 cmdkey P
         user_defaults
+        exec_bin "termsetup"
         end_cmd
 
 cmdkey !
diff --git a/exec/sdos.src b/exec/sdos.src
index 7c568fe29d..bee7966242 100644
--- a/exec/sdos.src
+++ b/exec/sdos.src
@@ -2,7 +2,7 @@
 
 # DOS shell for Synchronet version 2 systems
 
-# $Id: sdos.src,v 1.15 2020/04/23 02:46:09 rswindell Exp $
+# $Id: sdos.src,v 1.15 2020/09/12 02:46:09 rswindell Exp $
 
 # @format.tab-size 8, @format.use-tabs true
 
@@ -149,6 +149,7 @@ if_true
 compare_str "setup"
 if_true
 	user_defaults
+	exec_bin "termsetup"
 	return
 	end_if
 
diff --git a/exec/simple.src b/exec/simple.src
index d9dec4f0f4..00a47bda77 100644
--- a/exec/simple.src
+++ b/exec/simple.src
@@ -2,7 +2,7 @@
 
 # Simple Synchronet Command Shell - for beginner/first-time users
 
-# $Id: simple.src,v 1.13 2020/04/23 02:46:09 rswindell Exp $
+# $Id: simple.src,v 1.13 2020/09/12 02:46:09 rswindell Exp $
 
 # @format.tab-size 8, @format.use-tabs true
 
@@ -187,6 +187,7 @@ cmdstr DOORS
 #Account config (user defaults)
 cmdstr A
 	user_defaults
+	exec_bin "termsetup"
 	end_cmd
 
 #Page another user
diff --git a/exec/wildcat.src b/exec/wildcat.src
index b4c5a2f05c..9a9df8698c 100644
--- a/exec/wildcat.src
+++ b/exec/wildcat.src
@@ -1,6 +1,6 @@
 # wildcat.src
 
-# $Id: wildcat.src,v 1.17 2020/04/23 02:46:09 rswindell Exp $
+# $Id: wildcat.src,v 1.17 2020/09/12 02:46:09 rswindell Exp $
 
 # @format.tab-size 8, @format.use-tabs true
 
@@ -95,6 +95,7 @@ cmdkey I
 
 cmdkey Y
 	user_defaults
+	exec_bin "termsetup"
 	end_cmd
 
 cmdkey W
diff --git a/exec/wwiv.src b/exec/wwiv.src
index 32e1a977ed..230ebc7996 100644
--- a/exec/wwiv.src
+++ b/exec/wwiv.src
@@ -135,6 +135,7 @@ cmdkey C
 
 cmdkey D
 	user_defaults
+	exec_bin "termsetup"
 	end_cmd
 
 cmdkey E
-- 
GitLab