view src/testdir/test_short_sleep.py @ 29517:a762488a5d08 v9.0.0100

patch 9.0.0100: get hit-enter prompt for system() when '!' is in 'guioptions' Commit: https://github.com/vim/vim/commit/cb5ed4d6252a7c76c2f85ae95cb1e4e2bccc41fc Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 28 12:54:08 2022 +0100 patch 9.0.0100: get hit-enter prompt for system() when '!' is in 'guioptions' Problem: Get hit-enter prompt for system() when '!' is in 'guioptions'. Solution: Do not call wait_return() when not redrawing. (closes https://github.com/vim/vim/issues/3327)
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Jul 2022 14:00:03 +0200
parents 191ccece2f5d
children
line wrap: on
line source

#!/usr/bin/python
#
# Program that sleeps for 100 msec
#
# This requires Python 2.6 or later.

import time

if __name__ == "__main__":

    time.sleep(0.1)  # sleep 100 msec