Skip to main content

Module ring

Module ring 

Source
Expand description

A session’s output history: the last capacity bytes of everything its terminal wrote, addressed by offset in the whole stream (spec §7.2). A reattach asks for “everything after offset N” and gets it, or, when N has fallen out, everything still held plus how much was lost.

Held in memory (8 MB by default per session): the spec’s on-disk ring would outlive the daemon, but the sessions themselves cannot (their terminals are the daemon’s), so memory loses nothing that disk would keep.

Structs§

Replay
What a read from an offset gives back.
Ring

Constants§

DEFAULT_CAPACITY
The default history per session.