Annotation of coherent/g/usr/bin/vsh/winlib/cursor.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  *     Switch cursor on/off using terminfo
                      3:  *
                      4:  *      Copyright (c) 1991-93 by Udo Munk
                      5:  */
                      6: 
                      7: #ifdef AIX
                      8: #define NLS
                      9: #endif
                     10: 
                     11: #include <curses.h>
                     12: #include <term.h>
                     13: #include "winfun.h"
                     14: 
                     15: int cursor_status = 1;
                     16: 
                     17: cursoroff()
                     18: {
                     19:        cursor_status = 0;
                     20:        if ((cursor_invisible != NULL) && (*cursor_invisible != '\0')) {
                     21:                putp(cursor_invisible);
                     22:                fflush(stdout);
                     23:                return(WIN_OK);
                     24:        } else
                     25:                return(WIN_ERR);
                     26: }
                     27: 
                     28: cursoron()
                     29: {
                     30:        cursor_status = 1;
                     31:        if ((cursor_invisible != NULL) && (*cursor_invisible != '\0')) {
                     32:                putp(cursor_visible);
                     33:                fflush(stdout);
                     34:                return(WIN_OK);
                     35:        } else
                     36:                return(WIN_ERR);
                     37: }

unix.superglobalmegacorp.com

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