DEV Community

Discussion on: Really easy way to use HTTPS on localhost

rhymes profile image
rhymes Author

You can detect if the output is being redirected with POSIX functions isatty(3) and fstat(2)