Annotation of researchv10no/ncurses/screen/move.c, revision 1.1

1.1     ! root        1: # include      "curses.ext"
        !             2: /*     @(#) move.c: 1.1 10/15/83       (1.2    4/7/82) */
        !             3: 
        !             4: /*
        !             5:  *     This routine moves the cursor to the given point
        !             6:  *
        !             7:  * 1/26/81 (Berkeley) @(#)move.c       1.1
        !             8:  */
        !             9: wmove(win, y, x)
        !            10: reg WINDOW     *win;
        !            11: reg int                y, x;
        !            12: {
        !            13: 
        !            14: # ifdef DEBUG
        !            15:        if(outf) fprintf(outf, "MOVE to win ");
        !            16:        if( win == stdscr )
        !            17:        {
        !            18:                if(outf) fprintf(outf, "stdscr ");
        !            19:        }
        !            20:        else
        !            21:        {
        !            22:                if(outf) fprintf(outf, "%o ", win);
        !            23:        }
        !            24:        if(outf) fprintf(outf, "(%d, %d)\n", y, x);
        !            25: # endif
        !            26:        if( x >= win->_maxx || y >= win->_maxy )
        !            27:        {
        !            28:                return ERR;
        !            29:        }
        !            30:        win->_curx = x;
        !            31:        win->_cury = y;
        !            32:        return OK;
        !            33: }

unix.superglobalmegacorp.com

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