Annotation of gcl520h/gfterm.h, revision 1.1.1.1

1.1       root        1: #ifndef GFTERM_DOT_H
                      2: #define GFTERM_DOT_H
                      3: 
                      4: /*
                      5:  * GFTERM.H       5.20A  June 8, 1995
                      6:  *
                      7:  * The Greenleaf Comm Library
                      8:  *
                      9:  * Copyright (C) 1995 Greenleaf Software Inc.  All Rights Reserved.
                     10:  *
                     11:  * NOTES
                     12:  *
                     13:  *  This is the master include file for the GFTerm windows control.
                     14:  *  This is the control that we use for terminal emulation under
                     15:  *  Windows.
                     16:  *
                     17:  * MODIFICATIONS
                     18:  *
                     19:  * June 8, 1995       5.20A : Initial release
                     20:  *
                     21:  * June 14, 1995      5.20A : Went on a renaming binge.  Everything that
                     22:  *                            use to be WinTerm is now GFTerm.
                     23:  */
                     24: 
                     25: #ifdef __cplusplus
                     26: extern "C" {
                     27: #endif
                     28: 
                     29: /*
                     30:  * I use GFTERM_CAST in some of the terminal code to make
                     31:  * warning messages go away.  I have to cast void pointers
                     32:  * to HWND objects in some places, and various compilers
                     33:  * get upset if the cast isn't done properly.
                     34:  */
                     35: 
                     36: #ifdef _LDATA
                     37: #define GFTERM_CAST long
                     38: #else
                     39: #define GFTERM_CAST int
                     40: #endif
                     41: 
                     42: /*
                     43:  * The public access routines used to
                     44:  * read and write to the GFTerm guys.
                     45:  */
                     46: 
                     47: int GF_CONV InitGFTerm( HINSTANCE instance );
                     48: void GF_CONV _GFTermPutc( void * hwnd, int c );
                     49: int GF_CONV GFTermKbhit( HWND hWnd );
                     50: void GF_CONV _GFTermPuts( void *hWnd, char *s);
                     51: void GF_CONV _GFTermClearWindow( void *hWnd );
                     52: void GF_CONV _GFTermGoto( void *hWnd, int r, int c );
                     53: void GF_CONV _GFTermBeep( void *hWnd );
                     54: void GF_CONV _GFTermSetForeground( void *hWnd, int c );
                     55: void GF_CONV _GFTermSetBackground( void *hWnd, int c );
                     56: void GF_CONV _GFTermClearToEol( void *hWnd );
                     57: void GF_CONV _GFTermSetNormal( void *hWnd );
                     58: void GF_CONV _GFTermSetReverse( void *hWnd );
                     59: void GF_CONV _GFTermSetBold( void *hWnd );
                     60: void GF_CONV _GFTermSetBlink( void *hWnd );
                     61: void GF_CONV _GFTermSetUnderline( void *hWnd );
                     62: void GF_CONV _GFTermSetInvisible( void *hWnd );
                     63: int GF_CONV _GFTermCurrentRow( void * hWnd );
                     64: int GF_CONV _GFTermCurrentCol( void * hWnd );
                     65: int GF_CONV _GFTermRows( void * hWnd );
                     66: int GF_CONV _GFTermCols( void *hWnd );
                     67: void GF_CONV _GFTermSetWrap( void * hWnd, int flag );
                     68: 
                     69: /*
                     70:  * Almost all of the access functions for GFTerm use
                     71:  * void pointers as their arguments.  I provide a set
                     72:  * of macros that take care of casting a void * to an
                     73:  * HWND, so that it appears that there is a function
                     74:  * that actually takes an HWND as an argument.
                     75:  */
                     76: /*
                     77:  * Do I still need all of these?
                     78:  *
                     79: #define GFTermPutc( hWnd, c ) _GFTermPutc( (void *)(hWnd), (c) )
                     80: #define GFTermPuts( hWnd, s ) _GFTermPuts( (void *) (hWnd), (s) )
                     81: #define GFTermClearWindow( hWnd ) _GFTermClearWindow( (void *)( hWnd ) )
                     82: #define GFTermGoto( hWnd, r, c ) _GFTermGoto( (void *) (hWnd), (r), (c) )
                     83: #define GFTermBeep( hWnd ) _GFTermBeep( (void *) (hWnd ) )
                     84: #define GFTermSetForeground( hWnd, c ) _GFTermSetForeground( (void *)( hWnd ), ( c ) )
                     85: #define GFTermSetBackground( hWnd, c ) _GFTermSetBackground( (void *)( hWnd ), ( c ) )
                     86: #define GFTermClearToEol( hWnd ) _GFTermClearToEol( (void *) hWnd )
                     87: #define GFTermSetNormal( hWnd ) _GFTermSetNormal( (void *)( hWnd ) )
                     88: #define GFTermSetReverse( hWnd ) _GFTermSetReverse( (void *)( hWnd ) )
                     89: #define GFTermSetBold( hWnd ) _GFTermSetBold( (void *)( hWnd ) )
                     90: #define GFTermSetBlink( hWnd ) _GFTermSetBlink( (void *)( hWnd ) )
                     91: #define GFTermSetUnderline( hWnd ) _GFTermSetUnderline( (void *)( hWnd ) )
                     92: #define GFTermSetInvisible( hWnd ) _GFTermSetInvisible( (void *)( hWnd ) )
                     93: #define GFTermCurrentRow( hWnd ) _GFTermCurrentRow( (void *)(hWnd ) )
                     94: #define GFTermCurrentCol( hWnd ) _GFTermCurrentCol( (void *)(hWnd ) )
                     95: #define GFTermRows( hWnd ) _GFTermRows( (void *)(hWnd ) )
                     96: #define GFTermCols( hWnd ) _GFTermCols( (void *)(hWnd ) )
                     97: #define GFTermSetWrap( hWnd, flag ) _GFTermSetWrap( (void *)(hWnd), (flag ) )
                     98:  */
                     99: 
                    100: /*
                    101:  * These are friendly versions for use in debugging
                    102:  * or whatever.
                    103:  */
                    104: void GF_CDECL GFTermPrintf( HWND hWnd, char FAR *fmt, ... );
                    105: int GF_CONV GFTermGetKey( HWND hWnd );
                    106: 
                    107: #ifdef __cplusplus
                    108: }
                    109: #endif
                    110: 
                    111: #endif  /* #ifndef GFTERM_DOT_H */

unix.superglobalmegacorp.com

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