class

Termisu::TerminalOwnership

Inherits Reference < Object

Process-global ownership guard for the controlling terminal.

A process has one controlling terminal and Termisu also installs a global SIGWINCH handler and logging backend. Letting two instances manage those resources independently makes either instance's shutdown corrupt the other.

Constructors

acquire
Source

Instance methods

release

Releases this lease at most once. In particular, a repeated close on an old instance cannot release the lease subsequently acquired by a new instance.

Source