https://github.com/lilydjwg/stdoutisatty
Make programs think their stdout is a tty / terminal.
https://github.com/lilydjwg/stdoutisatty
isatty ld-preload linux stdout
Last synced: 6 months ago
JSON representation
Make programs think their stdout is a tty / terminal.
- Host: GitHub
- URL: https://github.com/lilydjwg/stdoutisatty
- Owner: lilydjwg
- License: bsd-2-clause
- Created: 2013-07-09T09:30:38.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-12-02T14:04:38.000Z (10 months ago)
- Last Synced: 2025-03-20T21:22:27.539Z (7 months ago)
- Topics: isatty, ld-preload, linux, stdout
- Language: C
- Size: 9.77 KB
- Stars: 45
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Make programs think their stdout is a tty / terminal.
Build & Install
---------------
::$ mkdir -p build && cd build
$ cmake ..
$ make
$ sudo make install
$ sudo ldconfigUsage
-----
Just prefix your command with ``stdoutisatty``::$ stdoutisatty ls --color=auto | less
Use a two-character environment variable ``ISATTY`` to specify whether you want stdout and/or stderr to be treated as a tty:
.. list-table::
:header-rows: 1* - ``ISATTY`` value
- which isatty
* - ``yy``
- stdout, stderr
* - ``y.``
- stdout
* - ``.y``
- stderr``.`` indicates any characer other than (lower-cased) ``y``. Only the first two characters are examined (currently).
Links
-----
* `A blog article (Chinese) `_