mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-08 12:11:51 +09:00
tvdos: cls to clear out secondary fbuf
This commit is contained in:
@@ -275,6 +275,7 @@ shell.coreutils = {
|
||||
cls: function(args) {
|
||||
con.clear();
|
||||
graphics.clearPixels(255);
|
||||
graphics.clearPixels2(240);
|
||||
},
|
||||
exit: function(args) {
|
||||
cmdExit = true;
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user