/************************************************************************/ /* 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); } }