Files
nethack/include
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
..
2022-02-04 11:01:20 -05:00
2025-05-25 20:38:17 -04:00
2026-04-20 21:04:22 -04:00
2025-04-15 15:35:17 -04:00
2026-01-11 10:11:30 -05:00
2022-11-29 21:53:21 -05:00
2026-04-24 21:15:48 -04:00
2026-03-23 20:46:08 +01:00
2026-04-27 19:22:04 -04:00
2026-04-04 15:39:46 +03:00
2022-06-30 23:48:18 -04:00
2026-03-19 09:48:29 -04:00
2024-09-06 13:08:07 -07:00
2026-04-25 14:41:39 -04:00
2021-01-26 21:06:16 -05:00
2026-01-13 10:32:08 -08:00
2026-04-27 19:22:04 -04:00
2026-03-21 12:17:37 +02:00
2026-04-05 13:11:14 -04:00
2026-04-27 19:22:04 -04:00
2025-05-29 09:59:29 -04:00
2025-05-26 20:33:06 -04:00
2024-09-06 13:08:07 -07:00
2022-06-19 02:30:45 -07:00
2026-03-19 05:10:09 +00:00
2024-09-06 13:08:07 -07:00
2026-04-25 14:41:39 -04:00
2024-02-24 13:49:51 -08:00
2026-04-01 12:56:37 -04:00
2026-03-21 04:52:51 +00:00
2026-04-27 19:22:04 -04:00
2024-12-20 10:32:38 -05:00
2024-11-26 20:57:11 -08:00
2022-10-26 14:21:23 -04:00
2025-05-26 13:18:32 -04:00
2024-03-07 11:01:04 -05:00
2025-05-25 20:38:17 -04:00
2024-02-28 20:15:56 -08:00
2024-09-06 13:08:07 -07:00
2024-03-07 11:01:04 -05:00
2024-08-17 11:19:45 -07:00
2024-11-13 09:07:10 -05:00
2023-11-22 16:01:58 -05:00
2020-08-12 16:15:28 -07:00
2024-12-20 10:32:38 -05:00
2024-12-20 10:32:38 -05:00
2024-09-06 13:08:07 -07:00
2025-03-22 12:17:12 -04:00
2026-03-23 20:48:06 +01:00
2026-04-13 16:54:44 +03:00
2026-04-27 19:22:04 -04:00
2026-04-20 21:04:22 -04:00
2025-04-26 12:50:18 -07:00
2025-04-15 15:35:17 -04:00
2025-02-28 11:37:05 -08:00
2022-10-26 14:21:23 -04:00
2022-10-26 14:21:23 -04:00
2026-04-25 14:41:39 -04:00
2026-04-25 14:41:39 -04:00