home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-ASM_VI.ARJ
/
PROGC.ZIP
/
PROGC046.C
< prev
next >
Wrap
Text File
|
1988-04-10
|
707b
|
17 lines
/************************************************************************/
/* Change 8 characters starting at row 24 and column 40 */
/* to black characters on white background */
/************************************************************************/
make_reverse()
{
#define GRAY 7
#define BLACK 0
int i;
set_cursor_position(24,40); /* Move cursor to 20,40 */
printf("Reverse "); /* Put a string there */
for (i = 0; i < 8 ; i++) /* Change its attribute */
write_attribute(24,40 + i, GRAY, BLACK);
}