mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-06-09 06:34:04 +09:00
tvdos: cls to clear out secondary fbuf
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user