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