ref: 6f09b2eb26e06e6a42f1a06067450e1989d35a8f
parent: 2e9907432d0ec7a982dc6a7407e67bcd186e2fd8
author: Noam Preil <noam@pixelhero.dev>
date: Wed Dec 10 18:37:12 EST 2025
isatty: check if TERM is set
--- a/libnpe/isatty.c
+++ b/libnpe/isatty.c
@@ -6,5 +6,5 @@
{char buf[64];
- return fd2path(fd, buf, sizeof(buf)) == 0 && strcmp(buf, "/dev/cons") == 0;
+ return fd2path(fd, buf, sizeof(buf)) == 0 && strcmp(buf, "/dev/cons") == 0 && access("/env/TERM", AEXIST) == 0;}
--
⑨