diff --git a/build/nodelist-browser.js b/build/nodelist-browser.js
index e98fdbf4f86d4d4e4f1b6aa110ac538a2967bcb7..16fe613ead6f223b44ae286ce700cb42cb88777e 100644
--- a/build/nodelist-browser.js
+++ b/build/nodelist-browser.js
@@ -1,4 +1,12 @@
-"use strict";
+"use strict";
+// TS4S terminal prep / cleanup fixesjs.on_exit("console.ctrlkey_passthru = ".concat(console.ctrlkey_passthru, ";"));
+js.on_exit("console.attributes = ".concat(console.attributes, ";"));
+js.on_exit("bbs.sys_status = ".concat(bbs.sys_status, ";"));
+js.on_exit("console.home();");
+js.on_exit('console.write("");');
+js.on_exit('console.write("");');
+js.on_exit('console.write("[?25h");');
+// End of TS4S terminal prep / cleanup fixes
 (function() {
   var __getOwnPropNames = Object.getOwnPropertyNames;
   var __commonJS = function(cb, mod) {
diff --git a/package-lock.json b/package-lock.json
index bcb27e890ed61cae921e93f9d12c8d8672b56a0d..5233507d2f2dcddb8b65e5354617c84c5bf9a61b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1985,7 +1985,7 @@
     },
     "node_modules/@swag/ts4s": {
       "version": "1.0.0",
-      "resolved": "git+ssh://git@gitlab.synchro.net:swag/ts4s.git#a430d118669876f2dbeb89aeb21203742b18d761",
+      "resolved": "git+ssh://git@gitlab.synchro.net:swag/ts4s.git#ff71f3a266792ed3d03d4cfd2bf38701b12e34b4",
       "license": "MIT",
       "dependencies": {
         "@babel/cli": "^7.20.7",
diff --git a/package.json b/package.json
index f558e8563c4dc080f4f1f784dabc9dfa514c48f3..7dcc1cb6324fd15cdaa13266d946e5e2425aa4cb 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
   "main": "src/nodelist-browser.ts",
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1",
-    "build": "ts4s build -s src -b build",
+    "build": "ts4s build -s src -b build -t",
     "deploy": "npm run build && eval $(cat .env) && scp -P $SSH_PORT build/*.js $SSH_USER@$SSH_HOST:$DEPLOY_PATH"
   },
   "author": "echicken",