view src/testdir/test_channel_write.py @ 27255:8c43e3d1a6e5 v8.2.4156

patch 8.2.4156: fileinfo message overwrites echo'ed message Commit: https://github.com/vim/vim/commit/726f7f91fd17e3e7eb39614a20d10ea83c134df0 Author: Rob Pilling <robpilling@gmail.com> Date: Thu Jan 20 14:44:38 2022 +0000 patch 8.2.4156: fileinfo message overwrites echo'ed message Problem: Fileinfo message overwrites echo'ed message. Solution: Reset need_fileinfo when displaying a message. (Rob Pilling, closes #9569)
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Jan 2022 15: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