part of shnell – a source to source compiler enhancement tool
© Jens Gustedt, 2019
Trick a program into assuming that it is run in a terminal.
Usage:
Coding and configuration
The following code is needed to enable the sh-module framework.SRC="$_" . "${0%%/${0##*/}}/import.sh"
Imports
The following sh
-modules are imported:
Details
MKNOD=${MKNOD:=mknod}
Found the solution of intercepting the isatty
call here: https://unix.stackexchange.com/a/273412/11934
It consists in compiling a dummy function and creating a shared library.
This should usually be built via the Makefile
.