mirror of
https://github.com/irmen/prog8.git
synced 2024-12-25 08:29:25 +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 {
|
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 {{
|
||||||
|
Loading…
Reference in New Issue
Block a user