Annotation of coherent/d/usr/lib/scn/showMsg.c, revision 1.1.1.1

1.1       root        1: #include <scn.h>
                      2: #define CTRL(c) (c - '@')
                      3: 
                      4: /*
                      5:  * Show a message and wait.
                      6:  */
                      7: int
                      8: showMsg(s)
                      9: char *s;
                     10: {
                     11:        char work[80], c;
                     12: 
                     13:        if (NULL == errWindow)
                     14:                fatal("No error window");
                     15:        sprintf(work, "%r", &s);
                     16:        wmove(errWindow, 0, 0);
                     17:        wstandout(errWindow);
                     18:        waddstr(errWindow, work);
                     19:        wstandend(errWindow);
                     20:        wrefresh(errWindow);
                     21:        if (CTRL('C') == (c = wgetch(errWindow)))
                     22:                exit(0);
                     23:        return(c);
                     24: }

unix.superglobalmegacorp.com

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