view src/testdir/test_channel_write.py @ 31146:f6d4c6a3b41c v9.0.0907

patch 9.0.0907: restoring window after WinScrolled may fail Commit: https://github.com/vim/vim/commit/d63a85592cef0ee4f0fec5efe2f8d66b31f01f05 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 19 11:41:30 2022 +0000 patch 9.0.0907: restoring window after WinScrolled may fail Problem: Restoring window after WinScrolled may fail. Solution: Lock the window layout when triggering WinScrolled.
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Nov 2022 12:45:04 +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