comparison runtime/tools/blink.c @ 7856:226ed297307f v7.4.1225

commit https://github.com/vim/vim/commit/d14e00ea67afbaa8cb4a7e6b1eb306da6a2d5adb Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 31 17:30:51 2016 +0100 patch 7.4.1225 Problem: Still a few old style function declarations. Solution: Make them new style. (Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Sun, 31 Jan 2016 17:45:04 +0100
parents 3fc0f57ecb91
children 64035abb986b
comparison
equal deleted inserted replaced
7855:c0eda90fbcda 7856:226ed297307f
5 * Bram Moolenaar 980109 (based on an idea from John Lange). 5 * Bram Moolenaar 980109 (based on an idea from John Lange).
6 */ 6 */
7 7
8 #include <stdio.h> 8 #include <stdio.h>
9 9
10 int
10 main() 11 main()
11 { 12 {
12 while (1) 13 while (1)
13 { 14 {
14 printf("\e[?25h"); 15 printf("\e[?25h");
16 usleep(400000); /* on time */ 17 usleep(400000); /* on time */
17 printf("\e[?25l"); 18 printf("\e[?25l");
18 fflush(stdout); 19 fflush(stdout);
19 usleep(250000); /* off time */ 20 usleep(250000); /* off time */
20 } 21 }
22 return 0;
21 } 23 }