if (blink_diff>=0 && blink_diff<450)
if (blink_diff>=0 && blink_diff<(long)GetCaretBlinkTime())
void term_blink(int flg) {static long last_blink = 0;static long last_tblink = 0;    long now, blink_diff;    now = GetTickCount();    blink_diff = now-last_tblink;    /* Make sure the text blinks no more than 2Hz */    if (blink_diff<0 || blink_diff>450)    {        last_tblink = now;	tblinker = !tblinker;    }    if (flg) {        blinker = 1;        last_blink = now;	return;    }     blink_diff = now-last_blink;    /* Make sure the cursor blinks no more than 2Hz */    if (blink_diff>=0 && blink_diff<450)       return;     last_blink = now;    blinker = !blinker;}