Skip to main content

Module cursor

Module cursor 

Source
Expand description

Multi-instance cursor coordination via per-tty file lock (-c mode).

FR-028/FR-029, AD-011, Clarifications Q6.

Uses the fd-lock crate’s portable lock primitive. On Unix this is fcntl(F_SETLK); on Windows it’s LockFileEx. v0.1.0 disables -c on Windows entirely with a stderr diagnostic at the call site (FR-028).

Structs§

CursorLock
RAII lock guard. Releases the lock when dropped.

Functions§

acquire
Acquire the per-tty cursor lock for the duration of the returned guard.
lock_path
Compute the per-tty lock-file path per FR-029.