home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / TC4OS22.ZIP / OS2VIO.H < prev    next >
Text File  |  1988-11-02  |  3KB  |  88 lines

  1. /***********************************************************************
  2. *  OS/2 VIO Routines for Turbo C                                       *
  3. *  Copyright 1988 FreeLance Programming.  All rights reserved.         *
  4. ***********************************************************************/
  5.  
  6. struct VioConfig
  7. {
  8. int  length;
  9. int  adapter_type;  /* 0=mono, 1=cga, 2=ega, 3=vga, 7=8514a */
  10. int  display_type;  /* 0=mono, 1=cga, 2=ega, 3=8503, 4=8513, 9=8514 */
  11. long mem_size;
  12. };
  13.  
  14. struct VioCursor
  15. {
  16. int  start_line;
  17. int  stop_line;
  18. int  width;
  19. int  attrib;        /* -1 = hidden */
  20. };
  21.  
  22. struct VioMode
  23. {
  24. int  length;
  25. char mode;    /* Bit 0 (LSB): 0=Mono/Prtr, 1=Other */
  26.               /* Bit 1      : 0=Text, 1=Graphics   */
  27.               /* Bit 2      : 0=Enable Color Burst, 1=Disable */
  28. char colors;  /* 1=2 color, 2=4 color, 4=16 color */
  29. int  columns;
  30. int  rows;
  31. int  hres;
  32. int  vres;
  33. long rsv;
  34. };
  35.  
  36. struct VioBufr
  37. {
  38. long buffer_start;
  39. long buffer_length;
  40. int  selector_list[4];
  41. };
  42.  
  43. #define __v extern int pascal
  44.  
  45. __v VioDeRegister(void);
  46. __v VioEndPopUp(int handle);
  47. __v VioGetANSI(int *flag, int handle);
  48. __v VioGetBuf (char **bufptr, int *LVBsize, int handle);
  49. __v VopGetConfig(struct VioConfig *video, int handle);
  50. __v VioGetCP(int rsv, int *codepage, int handle);
  51. __v VioGetCurPos(int *y, int *x, int handle);
  52. __v VioGetCurType(struct VioCursor *cursor, int handle);
  53. __v VioGetFont(void *rqst_block, int handle);
  54. __v VioGetMode(struct VioMode *mode, int handle);
  55. __v VioGetPhyBuf(struct VioBufr *buffer, int handle);
  56. __v VioGetState(void *data_struct, int handle);
  57. __v VioModeUndo(int owner, int kill, int handle);
  58. __v VioModeWait(int type, int *code, int handle);
  59. __v VioPopUp(int *options, int handle);
  60. __v VioReadCellStr(char *buffer, int *buflen, int y, int x, int handle);
  61. __v VioReadCharStr(char *buffer, int *count, int y, int x, int handle);
  62. __v VioRegister(char *name, char *entry_point, long mask1, long mask2);
  63. __v VioSaveRedrawUndo(int owner, int kill, int handle);
  64. __v VioSaveRedrawWait(int notify, int *code, int handle);
  65. __v VioScrLock(int wait, int *code, int handle);
  66. __v VioScrollDn(int y, int x, int y1, int x1, int num, int *attr, int handle);
  67. __v VioScrollLf(int y, int x, int y1, int x1, int cnt, int *attr, int handle);
  68. __v VioScrollRt(int y, int x, int y1, int x1, int cnt, int *attr, int handle);
  69. __v VioScrollUp(int y, int x, int y1, int x1, int num, int *attr, int handle);
  70. __v VioScrUnLock(int handle);
  71. __v VioSetANSI(int off_on, int handle);
  72. __v VioSetCP(int rsv, int code_page, int handle);
  73. __v VioSetCurPos(int y, int x, int handle);
  74. __v VioSetCurType(struct VioCursor *cursor, int handle);
  75. __v VioSetFont(void *rqst_block, int handle);
  76. __v VioSetMode(struct VioMode *mode, int handle);
  77. __v VioSetState(void *data_struc, int handle);
  78. __v VioShowBuf(int offset, int length, int handle);
  79. __v VioWrtCellStr(char *celltxt, int length, int y, int x, int handle);
  80. __v VioWrtCharStr(char *txt, int len, int y, int x, int handle);
  81. __v VioWrtCharStrAtt(char *txt, int len, int y, int x, int *attrib, int handle);
  82. __v VioWrtNAttr(char *screen, int count, int y, int x, int handle);
  83. __v VioWrtNCell(char *celltxt, int count, int y, int x, int handle);
  84. __v VioWrtNChar(char *ch, int count, int y, int x, int handle);
  85. __v VioWrtTTY(char *txt, int length, int handle);
  86.  
  87. #undef __v
  88.