aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorlostd <lostd@2f30.org>2015-03-12 14:57:34 +0200
committerlostd <lostd@2f30.org>2015-03-12 14:57:34 +0200
commitbc11d7b201fcb81f5457d5e3916512126649f6cf (patch)
tree69e0c164f5d00dc4396c0bb2e8016305800eb85f /noice.c
parent97cfd82eedfc5173736c6780e8efcdc335054a8b (diff)
downloadnoice-bc11d7b201fcb81f5457d5e3916512126649f6cf.tar.gz
Confirm we are in a terminal
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/noice.c b/noice.c
index e56a5f9..600e570 100644
--- a/noice.c
+++ b/noice.c
@@ -835,6 +835,10 @@ main(int argc, char *argv[])
char cwd[PATH_MAX], *ipath;
char *ifilter;
+ /* Confirm we are in a terminal */
+ if (!isatty(STDIN_FILENO))
+ printerr(1, "isatty");
+
if (getuid() == 0)
ifilter = ".";
else
Un proyecto texto-plano.xyz