summaryrefslogtreecommitdiff
path: root/alsamixer/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'alsamixer/cli.c')
-rw-r--r--alsamixer/cli.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/alsamixer/cli.c b/alsamixer/cli.c
index bb4f030..3f8f52f 100644
--- a/alsamixer/cli.c
+++ b/alsamixer/cli.c
@@ -115,6 +115,9 @@ fail:
int main(int argc, char *argv[])
{
+ if (!isatty(fileno(stdin)))
+ return 0;
+
setlocale(LC_ALL, "");
#ifdef ENABLE_NLS_IN_CURSES
textdomain(PACKAGE);