Files
nethack/sys/windows
nhmall a090ba90a1 add option idlecheckpoint
New experimental option

This requires platform support to be useful. Currently an
implementation for Windows TTY console is included.

A Unix TTY implementation should be achievable I would think,
but I haven't pursued that, at least not yet (contributions welcome).
I'm not sure whether Qt or X11 interfaces offer a similar
timeout capability..

How it works:

When idlecheckpoint in on, if the wait for a new input is idle for
10 seconds (length of time to waite is controlled by
IDLECHECKPOINT_WAIT_TIME #define in hack.h), save_currentstate() is
called to bring everything up-to-date should a hangup or crash occur.
The input wait then continues/resumes.

The save_currentstate() call is only executed once per input request.
2026-04-27 19:22:04 -04:00
..
2025-09-26 09:13:38 -04:00
2026-04-27 19:22:04 -04:00
2026-04-05 13:11:14 -04:00
2025-06-02 08:50:10 -04:00
2023-05-29 22:39:43 -04:00
2026-04-20 10:31:32 -04:00
2022-10-26 14:21:23 -04:00
2024-11-14 11:54:39 -05:00
2024-12-20 10:32:38 -05:00
2026-04-27 19:22:04 -04:00