home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Science / Science.zip / OS2SCALC.ZIP / CURS.H < prev    next >
C/C++ Source or Header  |  1990-07-20  |  857b  |  52 lines

  1. #ifdef OS2
  2.  
  3. /* Remote/Local keyboard flag, row column stuff */
  4.  
  5. #ifdef CURS_C
  6. int fRemote = 0;
  7. int PCrows  = 24;
  8. #else
  9. extern int fRemote;
  10. extern int PCrows;
  11. #endif
  12.  
  13. /* Prototypes for the OS/2 version */
  14.  
  15. VOID move(int y, int x);
  16. VOID clrtoeol(void);
  17. VOID printw(char *fmt, ... );
  18. VOID vprintw(char *fmt, void *args);
  19. VOID clrtobot(void);
  20. VOID standout(void);
  21. VOID standend(void);
  22. VOID addstr(char *s);
  23. VOID initscr(void);
  24. VOID clear(void);
  25. VOID endwin(void);
  26. char inch(void);
  27. VOID touchwin(void);
  28. VOID refresh(void);
  29. int  ttgetc(void);
  30. VOID ttputc(int c);
  31. VOID ttputs(char *s);
  32. VOID ttflush(void);
  33.  
  34. #endif
  35.  
  36. /* Define ROWS and COLS */
  37.  
  38. #ifdef MCH_AMIGA
  39. # define COLS    79
  40. # define ROWS    23
  41. #else
  42. # ifndef OS2
  43. #  define    COLS    80
  44. #  define ROWS    24
  45. # else
  46. #  define    COLS    80
  47. #  define ROWS    PCrows
  48. # endif
  49. #endif
  50.  
  51.  
  52.