mirror of
https://github.com/irmen/prog8.git
synced 2024-11-26 11:49:22 +00:00
txt.width() and txt.height() added for vm target
This commit is contained in:
parent
ebd9f1471b
commit
f40e0f786d
@ -4,6 +4,14 @@
|
||||
|
||||
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() {
|
||||
str @shared sequence = "\x1b[2J\x1B[H"
|
||||
%ir {{
|
||||
|
Loading…
Reference in New Issue
Block a user