Mercurial > vim
view runtime/tools/blink.c @ 22588:050cff1294ab v8.2.1842
patch 8.2.1842: crash when USE_FNAME_CASE is defined and using :browse
Commit: https://github.com/vim/vim/commit/21cbe175eece17fad21d7403b00422445b587138
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 13 19:08:24 2020 +0200
patch 8.2.1842: crash when USE_FNAME_CASE is defined and using :browse
Problem: Crash when USE_FNAME_CASE is defined and using :browse.
Solution: Don't use read-only memory for ".". (Yegappan Lakshmanan,
closes #7123)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 13 Oct 2020 19:15:04 +0200 |
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; }