Reading a Character

You can read the ASCII value of the character located at the virtual cursor position with the video out character function, vo_ch():

UCHAR vo_ch(wnp)

WINDOWPTR wnp;        /* Pointer to window to read from            */

For example, to read the character at the virtual cursor position (3, 3), do the following:

UCHAR my_char;

cs_mv(3, 3, ex_wnp);

my_char = vo_ch(ex_wnp);


Home Contents Previous Next