tvdos: cls to clear out secondary fbuf

This commit is contained in:
minjaesong
2022-05-08 20:54:02 +09:00
parent 979b11b1df
commit 09a7698205
2 changed files with 4 additions and 1 deletions

View File

@@ -275,6 +275,7 @@ shell.coreutils = {
cls: function(args) { cls: function(args) {
con.clear(); con.clear();
graphics.clearPixels(255); graphics.clearPixels(255);
graphics.clearPixels2(240);
}, },
exit: function(args) { exit: function(args) {
cmdExit = true; cmdExit = true;

View File

@@ -62,7 +62,9 @@ function sendMessage(line) {
} }
} }
else { 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)) println(com.fetchResponse(port - 1))
} }
} }