From 616fd5e8a5f843159f79be2455b674c8770f4aec Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 18 Nov 2015 03:16:40 +0000
Subject: [PATCH] Allow CTRL-A codes to be lower-case. Only pause on clear
 screen if something has been written to the screen.

---
 exec/load/dorkit.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec/load/dorkit.js b/exec/load/dorkit.js
index e8ee34f551..f348b9a674 100644
--- a/exec/load/dorkit.js
+++ b/exec/load/dorkit.js
@@ -140,7 +140,7 @@ var dk = {
 			}
 		},
 		ctrla_attr:function(code, attr) {
-			switch(code) {
+			switch(code.toUpperCase()) {
 				case 'K':
 					attr.fg = Attribute.BLACK;
 					break;
@@ -305,7 +305,7 @@ var dk = {
 		 * sets the current attribute to 7
 		 */
 		clear:function() {
-			if (this.remote_screen !== undefined && this.auto_pause && (this.remote_screen.new_lines || this.remote_screen.touched)) {
+			if (this.remote_screen !== undefined && this.auto_pause && this.remote_screen.touched) {
 				this.auto_pause = false;
 				this.pause();
 				this.auto_pause = true;
-- 
GitLab