def tty.at

ezx@1.11.0.0 · src/share/say.bend:94

import ezx@1.11.0.0/src/share/say.bend as Say
import Base

94# a device path that is a terminal. A pipe and `/dev/null` are not.
95def tty.at(+path: String) -> Bool:
96  Bool.or(String.starts_with(path, "/dev/pts/"),
97    Bool.or(String.eq(path, "/dev/console"), String.starts_with(path, "/dev/tty")))

Uses (5)

Used by (2)