Annotation of coherent/g/usr/bin/vsh/winlib/cmdbox.c, revision 1.1

1.1     ! root        1: /*
        !             2:  *      Use window without a box and enter a command line
        !             3:  *
        !             4:  *      Copyright (c) 1990-93 by Udo Munk
        !             5:  */
        !             6: 
        !             7: #ifdef AIX
        !             8: #define NLS
        !             9: #endif
        !            10: 
        !            11: #include <curses.h>
        !            12: 
        !            13: extern WINDOW *open_window();
        !            14: extern int edit_field(), close_window();
        !            15: 
        !            16: cmd_box(s, fn)
        !            17: char *s;
        !            18: int (*fn) ();
        !            19: {
        !            20:        register WINDOW *w;
        !            21:        register int ret;
        !            22: 
        !            23:        if ((w = open_window(1, COLS, LINES-1, 0)) == (WINDOW *) 0)
        !            24:                nomem();
        !            25:        touchwin(w);
        !            26:        ret = edit_field(w, 0, 0, s, COLS-1, 1, fn);
        !            27:        close_window(w);
        !            28:        return(ret);
        !            29: }

unix.superglobalmegacorp.com

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