Annotation of 43BSD/ingres/source/monitor/prompt.c, revision 1.1

1.1     ! root        1: # include      "monitor.h"
        !             2: # include      <ingres.h>
        !             3: # include      <aux.h>
        !             4: # include      <sccs.h>
        !             5: 
        !             6: SCCSID(@(#)prompt.c    8.1     12/31/84)
        !             7: 
        !             8: 
        !             9: 
        !            10: /*
        !            11: **  OUTPUT PROMPT CHARACTER
        !            12: **
        !            13: **     The prompt is output to the standard output.  It will not be
        !            14: **     output if -ss mode is set or if we are not at a newline.
        !            15: **
        !            16: **     The parameter is printed out if non-zero.
        !            17: **
        !            18: **     Uses trace flag 14
        !            19: */
        !            20: 
        !            21: prompt(msg)
        !            22: char   *msg;
        !            23: {
        !            24:        if (!Prompt || GiveEof)
        !            25:                return;
        !            26:        if (Nodayfile >= 0)
        !            27:        {
        !            28:                if (msg)
        !            29:                        printf("\07%s\n", msg);
        !            30:                printf("* ");
        !            31:        }
        !            32:        fflush(stdout);
        !            33: }
        !            34: 
        !            35: 
        !            36: /*
        !            37: **  PROMPT WITH CONTINUE OR GO
        !            38: */
        !            39: 
        !            40: cgprompt()
        !            41: {
        !            42:        prompt(Notnull ? "continue" : "go");
        !            43: }

unix.superglobalmegacorp.com

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