Extras/growlnotify/main.m
changeset 4145 5f49950abfbb
parent 4129 3c00479d5f08
child 4174 c5aea4e41bce
     1.1 --- a/Extras/growlnotify/main.m	Thu Jun 19 08:39:36 2008 +0000
     1.2 +++ b/Extras/growlnotify/main.m	Wed Jul 09 21:35:04 2008 +0000
     1.3 @@ -316,6 +316,9 @@
     1.4  		desc = CFStringCreateWithCString(kCFAllocatorDefault, message, kCFStringEncodingUTF8);
     1.5  	} else {
     1.6  		// Deal with stdin
     1.7 +		if (isatty(STDIN_FILENO) && isatty(STDOUT_FILENO))
     1.8 +			fputs("Enter a notification description, followed by newline, followed by Ctrl-D (End of File). To cancel, press Ctrl-C.\n", stdout);
     1.9 +
    1.10  		char buffer[4096];
    1.11  		CFMutableStringRef temp = CFStringCreateMutable(kCFAllocatorDefault, 0);
    1.12  		while (!feof(stdin)) {