view src/testdir/test_channel_write.py @ 12907:32531a3eab1f v8.0.1330

patch 8.0.1330: MS-Windows: job in terminal can't get back to Vim commit https://github.com/vim/vim/commit/52dbb5ea7fde4a77178bc59e2383ca40df503812 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 21 18:11:27 2017 +0100 patch 8.0.1330: MS-Windows: job in terminal can't get back to Vim Problem: MS-Windows: job in terminal can't get back to Vim. Solution: set VIM_SERVERNAME in the environment. (Yasuhiro Matsumoto, closes #2360)
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Nov 2017 18:15:06 +0100
parents 5cd9ba96561d
children
line wrap: on
line source

#!/usr/bin/python
#
# Program that writes a number to stdout repeatedly
#
# This requires Python 2.6 or later.

from __future__ import print_function
import sys
import time

if __name__ == "__main__":

    done = 0
    while done < 10:
        done = done + 1
        print(done)
        sys.stdout.flush()
        time.sleep(0.05)  # sleep 50 msec