txt.width() and txt.height() added for vm target

This commit is contained in:
Irmen de Jong 2023-03-11 16:05:45 +01:00
parent ebd9f1471b
commit f40e0f786d

View File

@ -4,6 +4,14 @@
txt { txt {
sub width() -> ubyte {
return 80 ; just some chosen value for the 'width' of the console
}
sub height() -> ubyte {
return 30 ; just some chosen value for the 'height' of the console
}
sub clear_screen() { sub clear_screen() {
str @shared sequence = "\x1b[2J\x1B[H" str @shared sequence = "\x1b[2J\x1B[H"
%ir {{ %ir {{