aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lpm.c b/src/lpm.c
index 48644e4..a21e11f 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -1138,6 +1138,8 @@ int main(int argc, char* argv[]) {
lua_setglobal(L, "VERSION");
lua_pushliteral(L, ARCH_PLATFORM);
lua_setglobal(L, "PLATFORM");
+ lua_pushboolean(L, isatty(fileno(stdout)));
+ lua_setglobal(L, "TTY");
#if _WIN32
lua_pushliteral(L, "\\");
#else