tty

    Check whether standard input is definitely redirected on POSIX.

    command-line
    moonx
    wasm
    Download zip
    Author
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    13 hours ago
    Downloads
    9

    #tty

    Check whether standard input is definitely redirected on POSIX.

    #Usage

    moonx cli/tty -s

    #Common options

    OptionDescription
    -s, --silent, --quietReport status without writing a name.
    --helpShow help.
    --versionShow the version.

    #Notes

    A regular file, directory, pipe, socket or block device produces not a tty and status 1. Character devices require a terminal ioctl, and Windows descriptor queries require a public console API; these cases return status 2.

    See the compatibility guide for the supported profile.

    Source Files