Diff

teal-src/util/pposix.d.tl @ 11656:c368b4f6ee04

util.pposix: Bind isatty(3) Useful for disabling certain behavior, ANSI colors etc when not connected to a terminal.
author Kim Alvefur <zash@zash.se>
date Sun, 04 Jul 2021 15:11:07 +0200
parent 11459:86904555bffc
line wrap: on
line diff
--- a/teal-src/util/pposix.d.tl	Sun Jul 04 02:33:15 2021 +0200
+++ b/teal-src/util/pposix.d.tl	Sun Jul 04 15:11:07 2021 +0200
@@ -98,6 +98,8 @@
 
 	atomic_append : function (f : FILE, s : string) : boolean, string, integer
 
+	isatty : function(FILE) : boolean
+
 	ENOENT : integer
 	_NAME : string
 	_VESRION : string