Annotation of coherent/f/usr/include.78/scn.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Header file for building scn files.
        !             3:  */
        !             4: #ifndef SCN
        !             5: #define SCN 1
        !             6: 
        !             7: #include <misc.h>
        !             8: #include <curses.h>
        !             9: 
        !            10: typedef struct backGrnd backGrnd;
        !            11: typedef struct loc loc;
        !            12: 
        !            13: struct backGrnd {
        !            14:        char *data;     /* data to display */
        !            15:        unsigned char row;
        !            16:        unsigned char col;
        !            17: };
        !            18: 
        !            19: /* loc flags */
        !            20: #define READONLY  2    /* readonly field */
        !            21: #define LONGFIELD 4    /* malloced field */
        !            22:  
        !            23: struct loc {
        !            24:        char *field;            /* field to fill or
        !            25:                                 * pointer to pointer for LONGFIELD */
        !            26:        unsigned  len;          /* field length */
        !            27:        char *Default;          /* field default */
        !            28:        int (*verify)();        /* verify function or null */
        !            29:        unsigned char flags;
        !            30:        unsigned char row;      /* location of field on window. */
        !            31:        unsigned char col;
        !            32:        unsigned char skipf;    /* skip factor */
        !            33:        char *help;             /* help message or null */
        !            34: };
        !            35: 
        !            36: #define getAll(fields)         wgetAll(stdscr, fields)
        !            37: #define showDefs(data, fields) wshowDefs(stdscr, data, fields)
        !            38: #define scnDriv(data, fields)  wscnDriv(stdscr, data, fields)
        !            39: #define getField(table, field) wgetField(stdscr, table, field)
        !            40: #define putField(table, field) wputField(stdscr, table, field)
        !            41: #define showBak(data)          wshowBak(stdscr, data)
        !            42: #define getChr()               wgetChr(stdscr)
        !            43: 
        !            44: extern void setUpScreen();     /* setUpScreen(linesForErr, errAtLine); */
        !            45: extern WINDOW *errWindow;      /* built by setUpScreen() */
        !            46: extern void closeUp();         /* shut down screen */
        !            47: extern void showError();       /* showError(fmt, ...); */
        !            48: extern int  Query();           /* Query(fmt, ...); one char reply */
        !            49: extern void clearArea();       /* clearArea(row, col, length); */
        !            50: extern void clearBak();                /* clearBak(scn_data, scn_locs); */
        !            51: extern void wshowBak();                /* showBak(w, scn_data); put out background */
        !            52: extern int  wgetChr();         /* use instead of getch */
        !            53: extern void wshowDefs();       /* showDefs(win, scn_data, scn_locs); */
        !            54: extern void wscnDriv();                /* scnDriv(win, scn_data, scn_locs); */
        !            55: extern void wgetAll();         /* wgetAll(scn_locs); */
        !            56: extern int  wgetField();       /* getField(win, scn_locs, fieldName); */
        !            57: extern void wputField();       /* putField(win, scn_locs, fieldName); */
        !            58: #endif

unix.superglobalmegacorp.com

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