Annotation of coherent/d/usr/lib/libcurses/beep.c, revision 1.1

1.1     ! root        1: /* $Header: /newbits/usr/lib/libcurses/RCS/beep.c,v 1.2 91/09/30 12:42:42 bin Exp Locker: bin $
        !             2:  *
        !             3:  *     The  information  contained herein  is a trade secret  of INETCO
        !             4:  *     Systems, and is confidential information.   It is provided under
        !             5:  *     a license agreement,  and may be copied or disclosed  only under
        !             6:  *     the terms of that agreement.   Any reproduction or disclosure of
        !             7:  *     this  material  without  the express  written  authorization  of
        !             8:  *     INETCO Systems or persuant to the license agreement is unlawful.
        !             9:  *
        !            10:  *     Copyright (c) 1989
        !            11:  *     An unpublished work by INETCO Systems, Ltd.
        !            12:  *     All rights reserved.
        !            13:  */
        !            14: 
        !            15: #include <stdio.h>
        !            16: #include "curses.ext"
        !            17: 
        !            18: beep()
        !            19: {
        !            20:        register uchar * s;
        !            21: 
        !            22: # ifdef        DEBUG
        !            23:        fprintf( outf, "BEEP\n");
        !            24: # endif
        !            25: 
        !            26:        /*
        !            27:         * Use audible bell if available, otherwise visible bell.
        !            28:         */
        !            29:        if ( (s = bell) || (s = VB) || (s = "\007") )
        !            30:                write( 1, s, strlen(s) );
        !            31: }
        !            32: 
        !            33: flash()
        !            34: {
        !            35:        register uchar * s;
        !            36: 
        !            37: # ifdef        DEBUG
        !            38:        fprintf( outf, "FLASH\n");
        !            39: # endif
        !            40: 
        !            41:        /*
        !            42:         * Use visible bell if available, otherwise audible bell.
        !            43:         */
        !            44:        if ( (s = VB) || (s = bell) || (s == "\007") )
        !            45:                write( 1, s, strlen(s ) );
        !            46: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.