Added a prompt message for when stdin and stdout are a tty (i.e., when the user simply types “growlnotify foo” and doesn't specify a description).
1.1 --- a/Extras/growlnotify/main.m Mon Jul 07 19:34:48 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)) {