[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

You write to the console device by passing an I/O request to the device
with a pointer to the write buffer set in io_Data, the number of bytes in
the buffer set in io_Length and CMD_WRITE set in io_Command.

    UBYTE *outstring= "Make it so.";

    ConsIO->io_Data = outstring;
    ConsIO->io_Length = strlen(outstring);
    ConsIO->io_Command = CMD_WRITE;
    DoIO(ConsIO);

You may also send NULL-terminated strings to the console device in the
same manner except that io_Length must be set to -1.

    ConsIO->io_Data = "\033[3mOh boy.";
    ConsIO->io_Length = -1;
    ConsIO->io_Command = CMD_WRITE;
    DoIO(ConsIO);

The fragment above will output the string "Oh boy." in italics.  Keep in
mind that setting the text rendition to italics will remain in effect
until you specifically instruct the console device to change it to another
text style.

 Hints For Writing Text 
 Control Sequences For Window Output 
 Example Console Control Sequences