Writing Characters

There are five functions that write a specified character to one or more positions in the window buffer. The functions that write characters are listed in Table 24.4. All of these functions accept tab and newline characters.

Table 24.4: Character Output Functions

Function Respects Options? Description
v_ch(ch, wnp) Yes Writes a character using the window attribute
v_chq(ch, q, wnp) No Writes a quantity of characters using the window attribute
v_chattcol(r, c, ch, att, q, mv_type, wnp) No Writes a quantity of characters and/or attributes in column format
v_chattrow(r, c, ch, att, q, mv_type, wnp) No Writes a quantity of characters and/or attributes in row form
v_chattarea(rb, cb, re, ce, ch, att, mv_type, wnp) No Fills a rectangular area with characters and/or attributes

For PCDOS applications, you can specify the block-graphic shading characters as the character (ch) to write. For your convenience, they have been #defined as:

CH_LIGHTSHADE
CH_MEDSHADE
CH_DARKSHADE
CH_BLOCK
CH_BOTBLOCK
CH_TOPBLOCK
CH_LFTBLOCK
CH_RTBLOCK

More:

Writing a Single Character While Respecting the Window Options

Writing a Quantity of Characters

Writing a Row of Characters

Writing a Column of Characters

Filling Rectangular Areas of a Window with a Character


Home Contents Previous Next