$Log$
+ Revision 601.67 2002/11/13 17:20:57 ajc
+ * When in curses mode, call beep() instead of putc(7, stdout) to make it beep.
+
Revision 601.66 2002/11/12 04:30:16 ajc
* Completed the invitation accept/decline code. It now sends back a
correctly formated reply! (Tested with Evolution)
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
return;
if (rc_exp_beep) {
- scr_putc(7);
+ ctdl_beep();
}
if (strlen(rc_exp_cmd) == 0) {
color(BRIGHT_RED);
/* clean up the temporary directory */
nukedir(tempdir);
- scr_putc(7); /* Beep beep! */
+ ctdl_beep(); /* Beep beep! */
}
#endif
}
+/*
+ * Beep.
+ */
+void ctdl_beep(void) {
+#if defined(HAVE_CURSES_H) && !defined(DISABLE_CURSES)
+ if (myscreen)
+ beep();
+ else
+#endif
+ putc(7, stdout);
+}
+
+
/*
* Set screen/IO parameters, e.g. at start of program or return from external
int is_curses_enabled(void);
RETSIGTYPE scr_winch(int signum);
void wait_indicator(int state);
+void ctdl_beep(void);