From 09a7698205ea801dddbc03f71e58a861b2cb1d36 Mon Sep 17 00:00:00 2001 From: minjaesong Date: Sun, 8 May 2022 20:54:02 +0900 Subject: [PATCH] tvdos: cls to clear out secondary fbuf --- assets/disk0/tvdos/bin/command.js | 1 + assets/disk0/tvdos/bin/telcom.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/assets/disk0/tvdos/bin/command.js b/assets/disk0/tvdos/bin/command.js index dbfeab9..fda7572 100644 --- a/assets/disk0/tvdos/bin/command.js +++ b/assets/disk0/tvdos/bin/command.js @@ -275,6 +275,7 @@ shell.coreutils = { cls: function(args) { con.clear(); graphics.clearPixels(255); + graphics.clearPixels2(240); }, exit: function(args) { cmdExit = true; diff --git a/assets/disk0/tvdos/bin/telcom.js b/assets/disk0/tvdos/bin/telcom.js index b209dcc..97726a1 100644 --- a/assets/disk0/tvdos/bin/telcom.js +++ b/assets/disk0/tvdos/bin/telcom.js @@ -62,7 +62,9 @@ function sendMessage(line) { } } else { - com.sendMessage(port - 1, line + "\x17") + if (line.charAt(line.length - 1) == '\\') + line = line.substring(0, line.length - 1) + '\x17' + com.sendMessage(port - 1, line) println(com.fetchResponse(port - 1)) } }