diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |