Previous | Top | Index | Next |
The following routines are available after loading the library file conio.r with the command: CALL import "conio.r".
Clear Screen through INT 10h call.CALL cls
Clear from cursor position until End of Line (ANSI Call)CALL eoline
Set the current video Mode. Look at BIOS manual for available modes.CALL setmode 3 /* Switch to normal 80x25 color */
CALL setmode 1 /* Switch to 40x25 color */
Returns the current video mode.SAY getmode() /* Probably 3 */
Position cursor in the screenCALL gotoxy 0,20 /* Goto to begining of line 20 */
Returns the current position of the cursor.SAY wherexy() /* maybe: "20 5" */
PARSE VALUE wherexy() WITH X Y /* maybe: X=20 Y=5 */
Returns the current column position of the cursor.SAY wherex() /* maybe: "20" */
Returns the current row position of the cursor.SAY wherey() /* maybe: "5" */
Set the pixel color to c at position x,y Valid only in graphics modes.CALL putpixel 10,10,15
Get the pixel color at position x,y Valid only in graphics modes.SAY getpixel(10,10) /* maybe 15 */
Waits for a key to be pressed and returns the character. If a special character is pressed, then it returns the scan code in HEX.SAY getch() /* maybe 'a' */
SAY getch() /* maybe '01' */
Same as the GETCH but echos also the character to screen.
Returns '1' if a character is waiting in the keyboard buffer, else returns '0'
Previous | Top | Index | Next |