roCharDisplay
9 min
the rochardisplay object lets you write to a character display as well as set and get its properties object creation createobject("rochardisplay") if chardisplay show(row as integer, col as integer, txt as string) as void displays text at the prescribed position this has the following parameters row \<font color="#6b21a8">int\</font> the row in which to put the text col \<font color="#6b21a8">int\</font> the column in which to put the text txt \<font color="#6b21a8">string\</font> the text as a string clear() as void clears the display setposition (row as integer, col as integer) as void positions the cursor this has the following parameters row \<font color="#6b21a8">int\</font> the row in which to put the cursor col \<font color="#6b21a8">int\</font> the column in which to put the cursor setcursor(cursor as integer) as void sets the cursor style this has the following parameter cursor \<font color="#6b21a8">int\</font> the preferred cursor style; 0 is off; 1 is blink; 2 is underline; 3 is both setcontrast(contrast as integer) as void set the display contrast this has the following parameter contrast \<font color="#6b21a8">int\</font> a value from 0 to 100 getcontrast() as integer gets the display contrast setbrightness(brightness) as integer set the display brightness this has the following parameter brightness \<font color="#6b21a8">int\</font> a value from 0 to 100 getbrightness() as integer gets the display brightness getcolumns() as integer returns the number of columns this is useful for writing code that loops over the available rows and columns getrows() as integer returns the number of rows this is useful for writing code that loops over the available rows and columns