view src/testdir/test_channel_write.py @ 20737:0b4a9642b39c v8.2.0921

patch 8.2.0921: CTRL-W T in cmdline window causes trouble Commit: https://github.com/vim/vim/commit/4fdb8bd0546ac8d90560a4fad359a48667089d43 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 7 17:03:21 2020 +0200 patch 8.2.0921: CTRL-W T in cmdline window causes trouble Problem: CTRL-W T in cmdline window causes trouble. Solution: Disallow CTRL-W T in the cmdline window. Add more tests. (Naruhiko Nishino, closes #6219)
author Bram Moolenaar <Bram@vim.org>
date Sun, 07 Jun 2020 17:15:03 +0200
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