
position Specify cursor position. To display cursor on the Mth
column of the Nth line, specify as
(N-1)*(columns per line)+(M-1). (Both line number and
column number starts from "1" which corresponds to the
top line and the left-most column. Columns are the
number of single column character.)
width Specify width of the cursor in the unit of single
column character width. Allowable maximum width is the
number of columns per line. (80) Cursor cannot be
displayed across the lines.
Allowable parameter range of each argument
argument
------------+-------------------+-------------------------------
start 0 - 15
end 0 - 15
(must satisfy end>=start)
position 0 - 2399
width 1 - 80
[Example]
Following program modifies the specified lines to be underlined.
#include <crt.h>
void example( unsigned int line )
{
if ( crt_gettype() & CRT_TYPE_80X25 )
crt_2ndcursor( CUR2_ON, 15, 15, (line-1)*80, 80 ) ;
else
crt_2ndcursor( CUR2_ON, 24, 24, (line-1)*40, 40 ) ;
}