From b93398ce799df5c165163c96e91d6a8205f0a83c Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 4 Jul 2021 15:11:07 +0200 Subject: util.pposix: Bind isatty(3) Useful for disabling certain behavior, ANSI colors etc when not connected to a terminal. --- teal-src/util/pposix.d.tl | 2 ++ 1 file changed, 2 insertions(+) (limited to 'teal-src/util') diff --git a/teal-src/util/pposix.d.tl b/teal-src/util/pposix.d.tl index 7e5ce60e..68f49730 100644 --- a/teal-src/util/pposix.d.tl +++ b/teal-src/util/pposix.d.tl @@ -98,6 +98,8 @@ local record pposix atomic_append : function (f : FILE, s : string) : boolean, string, integer + isatty : function(FILE) : boolean + ENOENT : integer _NAME : string _VESRION : string -- cgit v1.2.3