view src/testdir/test_channel_write.py @ 22705:ba3f547dc490 v8.2.1901

patch 8.2.1901: variable completion does not work in command line window Commit: https://github.com/vim/vim/commit/4ff2f2fb6bef01a06bd726bae8dfa8dd6355d594 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 25 13:22:42 2020 +0100 patch 8.2.1901: variable completion does not work in command line window Problem: Variable completion does not work in command line window. Solution: Use the "prevwin". (closes https://github.com/vim/vim/issues/7198)
author Bram Moolenaar <Bram@vim.org>
date Sun, 25 Oct 2020 13:30: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