Process signal state shared by terminal/input and transport code.
SIGWINCH is process-wide, so its pending state must not live in a thread-local editor module. The handler only stores a sig_atomic_t flag and uses SA_RESTART so resize does not tear down blocking socket reads.
Procs
proc consumeResizePending(): bool {....raises: [], tags: [], forbids: [].}
proc installResizeHandler() {....raises: [], tags: [], forbids: [].}
proc markResizePending() {....raises: [], tags: [], forbids: [].}