view runtime/tools/blink.c @ 34273:f4ae2a159bde v9.1.0075

patch 9.1.0075: insert completion not correct when adding new leader Commit: https://github.com/vim/vim/commit/cbb46b439888e10f87baaca504eafd191723c44b Author: glepnir <glephunter@gmail.com> Date: Sat Feb 3 18:11:13 2024 +0100 patch 9.1.0075: insert completion not correct when adding new leader Problem: insert completion not correct when adding new leader Solution: Reset compl_curr_match to compl_shown_match (glepnir) closes: #13957 Co-authored-by: glepnir <glephunter@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 03 Feb 2024 18:30:03 +0100
parents 64035abb986b
children
line wrap: on
line source

/*
 * An extremely simple program to make the cursor blink in an xterm.
 * This is useful when the cursor is hard to spot in a highlighted file.
 * Start in the background: "blink&"  Stop by killing it.
 * Bram Moolenaar  980109  (based on an idea from John Lange).
 */

#include <stdio.h>
#include <unistd.h>

	int
main(void)
{
	while (1)
	{
		printf("\e[?25h");
		fflush(stdout);
		usleep(400000);		/* on time */
		printf("\e[?25l");
		fflush(stdout);
		usleep(250000);		/* off time */
	}
	return 0;
}