Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

This is an old revision of the document!


CHARAT

Syntax:

charat <byte or int x_pos>, <byte or int y_pos>, <byte or int screencode>

The CHARAT command outputs a character at the given x and y position on the screen. All arguments can be of byte or integer type.

Example:

rem this puts an 'A' near the center of the screeen
charat 20, 10, 65 

Note that the runtime library will not check if the values are within the screen boundaries. As CHARAT is just a convenience wrapper around POKE, it can overwrite memory locations other than the screen memory, thus damaging the program or data. Use it with special care.