Check whether the controlling terminal is readable and writable.

SolidGroundUX DocumentationSolidGroundUX
NL

fn: sgnd_has_tty

Purpose

Check whether the controlling terminal is readable and writable.

Returns

  • 0 when /dev/tty is accessible for both operations; 1 otherwise.

Usage

  sgnd_has_tty