view src/testdir/test_channel_write.py @ 24200:dafaa9c80334 v8.2.2641

patch 8.2.2641: display test fails because of lacking redraw Commit: https://github.com/vim/vim/commit/2cec027af461095f96dec3bfd036c267f790b0f4 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 22 17:30:47 2021 +0100 patch 8.2.2641: display test fails because of lacking redraw Problem: Display test fails because of lacking redraw. Solution: Add a redraw command.
author Bram Moolenaar <Bram@vim.org>
date Mon, 22 Mar 2021 17:45:03 +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