home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-ASM_VI.ARJ
/
PROGC.ZIP
/
PROGC047.C
< prev
next >
Wrap
Text File
|
1988-04-10
|
790b
|
23 lines
/************************************************************************/
/* Print 'Warning' in last line of the screen and make it blink */
/************************************************************************/
demo_text_blink()
{
#define ENABLE 1
#define DISABLE 0
#define BLINKING_BLACK 8
#define GRAY 7
int i;
static char warning[] = "Warning";
text_blink(ENABLE); /* Enable text blinking */
for (i = 0; warning[i] != 0; i++) /*Display string */
{
write_char(warning[i],24,40+i);
write_attribute(24,40+i, BLINKING_BLACK, GRAY);
}
}