aaronryank / Cubically

An esoteric programming language based on Rubik's Cubes
https://github.com/Cubically
GNU General Public License v3.0
28 stars 6 forks source link

TIO compatibility with a compile-time check as opposed to a Makefile rule #15

Closed aaronryank closed 6 years ago

aaronryank commented 6 years ago

This would be nice - especially if there was a way to do it in a portable way. Possibly use libportable (add a functionality to it to test if STDOUT is a terminal)

aaronryank commented 6 years ago

Ok, libportable is stupid, I'll just use isatty. It's actually rather infuriating that POSIX uses isatty from unistd.h and Windows uses _isatty from io.h.

aaronryank commented 6 years ago

Fixed with commit 108.