def tty.at
import ezx@1.11.0.0/src/share/say.bend as Sayimport 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")))