中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-14 23:27
47,812 topics / 349,917 posts / today 0 new / 48,268 members
DOS开发编程 & 发展交流 (开发室) » Help: C program How to respond to key presses during delay?
Printable Version  11,872 / 0
Floor1 proof Posted 2021-04-01 11:36
高级用户 Posts 222 Credits 687
Turbo C environment, program overview:
-------------------------------
while (no key pressed) {
display string
sleep(5 minutes) / delay(5 minutes)
clear string
change screen coordinates
}
-------------------------------

Requirement: When no key is pressed, refresh the string every 5 minutes. And respond to key presses at any time (exit when a key is pressed).

Now the situation is that although there is a key pressed, it must wait until the 5 minutes are up before it can exit.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023