From 6c1b5319fd67885110378c758fabf5902ad978db Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Thu, 12 Nov 2015 03:48:30 +0000
Subject: [PATCH] Don't enforce side-effects in the separate drivers, do them
 in the dorkit file.

---
 exec/dorkit/jsexec_console.js | 2 --
 exec/dorkit/sbbs_console.js   | 3 +--
 exec/dorkit/socket_console.js | 2 --
 3 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/exec/dorkit/jsexec_console.js b/exec/dorkit/jsexec_console.js
index 0b1d546683..728567e67c 100644
--- a/exec/dorkit/jsexec_console.js
+++ b/exec/dorkit/jsexec_console.js
@@ -1,11 +1,9 @@
 /*
  * Clears the current screen to black and moves to location 1,1
- * sets the current attribute to 7
  */
 
 dk.console.remote_io = {
 	clear:function() {
-		this.attr.value=7;
 		this.print("\x0c");
 	},
 
diff --git a/exec/dorkit/sbbs_console.js b/exec/dorkit/sbbs_console.js
index cbfd44c6e1..4116596a93 100644
--- a/exec/dorkit/sbbs_console.js
+++ b/exec/dorkit/sbbs_console.js
@@ -4,12 +4,11 @@ console.ctrlkey_passthru=0x7fffffff;	// Disable all parsing.
 
 /*
  * Clears the current screen to black and moves to location 1,1
- * sets the current attribute to 7
  */
 
 dk.console.remote_io = {
 	clear:function() {
-		console.clear(7);
+		console.clear();
 	},
 
 	/*
diff --git a/exec/dorkit/socket_console.js b/exec/dorkit/socket_console.js
index 9a2327f72d..4ce9541016 100644
--- a/exec/dorkit/socket_console.js
+++ b/exec/dorkit/socket_console.js
@@ -1,12 +1,10 @@
 /*
  * Clears the current screen to black and moves to location 1,1
- * sets the current attribute to 7
  */
 
 dk.console.remote_io = {
 	sock:new Socket(true, dk.connection.socket),
 	clear:function() {
-		dk.console.attr.value=7;
 		this.print("\x0c");
 	},
 
-- 
GitLab