Mercurial > vim
view runtime/tools/blink.c @ 16032:831f9e74eded v8.1.1021
patch 8.1.1021: pyeval() and py3eval() leak memory
commit https://github.com/vim/vim/commit/8e9a24a127c4ef8833fdc3986623f96c7d04210f
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Mar 19 22:22:55 2019 +0100
patch 8.1.1021: pyeval() and py3eval() leak memory
Problem: pyeval() and py3eval() leak memory.
Solution: Do not increase the reference count twice. (Ozaki Kiichi,
closes #4129)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 19 Mar 2019 22: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; }