diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-11-26 04:02:03 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-11-26 04:02:03 +0000 |
commit | bda33b7e716d56bf1a9ecccb7e2543889f9ab1d3 (patch) | |
tree | 7bc4bcdf70ecc1d045693a309e96b304e1b49c33 /lib/libcurses/lib_beep.c | |
parent | cd15e61d557c4704743905eae7b88ae927cf0394 (diff) |
ncurses 4.1 + changes to work with our terminfo libs (instead of
the ncurses ones). Changes are #ifdef EXTERN_TERMINFO.
Post 4.1 patches will be applied in a separate commit.
Diffstat (limited to 'lib/libcurses/lib_beep.c')
-rw-r--r-- | lib/libcurses/lib_beep.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/lib/libcurses/lib_beep.c b/lib/libcurses/lib_beep.c index 0beee7c160c..4439162e44d 100644 --- a/lib/libcurses/lib_beep.c +++ b/lib/libcurses/lib_beep.c @@ -27,8 +27,10 @@ * */ -#include "curses.priv.h" -#include "term.h" /* beep, flash */ +#include <curses.priv.h> +#include <term.h> /* beep, flash */ + +MODULE_ID("Id: lib_beep.c,v 1.3 1997/02/02 00:27:01 tom Exp $") /* * beep() @@ -40,9 +42,9 @@ int beep(void) { - T(("beep() called")); + T((T_CALLED("beep()"))); - /* should make sure that we are not in altchar mode */ + /* FIXME: should make sure that we are not in altchar mode */ if (bell) { TPUTS_TRACE("bell"); return(putp(bell)); @@ -51,7 +53,7 @@ int beep(void) return(putp(flash_screen)); } else - return(ERR); + returnCode(ERR); } /* @@ -64,16 +66,16 @@ int beep(void) int flash(void) { - T(("flash() called")); + T((T_CALLED("flash()"))); - /* should make sure that we are not in altchar mode */ + /* FIXME: should make sure that we are not in altchar mode */ if (flash_screen) { TPUTS_TRACE("flash_screen"); - return(putp(flash_screen)); + returnCode(putp(flash_screen)); } else if (bell) { TPUTS_TRACE("bell"); - return(putp(bell)); + returnCode(putp(bell)); } else - return(ERR); + returnCode(ERR); } |