Mercurial > vim
view runtime/tools/blink.c @ 15452:1c6a708a5fee v8.1.0734
patch 8.1.0734: the hlsearch state is not stored in a session file
commit https://github.com/vim/vim/commit/e3c74d249ac36404d8af25f74baf335d143b30e3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 12 16:29:30 2019 +0100
patch 8.1.0734: the hlsearch state is not stored in a session file
Problem: The hlsearch state is not stored in a session file.
Solution: Add "nohlsearch" if appropriate. (Jason Franklin)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Jan 2019 16:30:05 +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; }