aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 624734004..0a4405112 100644
--- a/main.c
+++ b/main.c
@@ -85,7 +85,8 @@ main(int argc, char *argv[])
}
/* set xterm title */
- printf("%c]0;%s%c", '\033', PACKAGE " v" VERSION, '\007');
+ if( getenv("DISPLAY") )
+ printf("%c]0;%s%c", '\033', PACKAGE " v" VERSION, '\007');
/* install exit function */
atexit(exit_and_cleanup);