home *** CD-ROM | disk | FTP | other *** search
/ CD Review 63 / cdreview-63-1996-12.iso / blam / hmiset.bat < prev    next >
DOS Batch File  |  1995-11-17  |  49KB  |  836 lines

  1. setup
  2. echo                Installation complete - type shock to run game  
  3.  
  4.  O   V     _insert_sorted ╘_bad_key ╒mouse_prompt Æhistory_exit e_init _insert_unsorted 4_complete_dir Å_complete_read_file ╣_prompt_end v_complete_edit_file ■_prompt_begin æ_complete_action '_complete_select φ_complete_load_macro _complete_select_all l_complete_delete_macro å_last_response ╕    pre_func 8     _history_buf ° le Selected!");
  5.     }
  6. }    
  7.  
  8.  
  9. d _dos_write( int __handle, void const __far *__buf, unsigned __count,
  10.                     unsigned *__bytes );
  11. extern int      dosexterr(struct _DOSERROR *);
  12. extern void     _harderr(register int (__far *__func)(unsigned __deverr,
  13.                         unsigned __errcode,unsigned __far *__devhdr));
  14. extern void     _hardresume(int __result);
  15. extern void     _hardretn(int __error);
  16. extern int      intdos(union REGS *, union REGS *);
  17. extern int      intdosx(union REGS *, union REGS *, struct SREGS *);
  18. extern void     sleep(unsigned __seconds);
  19.  
  20. #pragma pack();
  21. #define _DOS_H_INCLUDED
  22. #if defined(__WINDOWS_386__) || defined(__NT__) || ( defined(__OS2__) && defined(__386__) )
  23. #undef __far
  24. #endif
  25. #ifdef __cplusplus
  26. };
  27. #endif
  28. #endif
  29.     ═φ  ╘C┘   
  30. α_history_bu/*
  31.  *  conio.h    Console and Port I/O functions
  32.  *
  33.  *  Copyright by WATCOM International Corp. 1988-1994.  All rights reserved.
  34.  */
  35. #ifndef _CONIO_H_INCLUDED
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39.  
  40. #ifndef __VALIST
  41.  #ifdef  __HUGE__
  42.   typedef char __far *__va_list[1];
  43.  #else
  44.   typedef char *__va_list[1];
  45.  #endif
  46.  #define __VALIST
  47. #endif
  48.  
  49. extern char *cgets(char *__buf);
  50. extern int cputs(const char *__buf);
  51. extern int cprintf(const char *__fmt,...);
  52. extern int cscanf(const char *__fmt,...);
  53. extern int getch(void);
  54. extern int getche(void);
  55. extern int kbhit(void);
  56. extern unsigned inp(unsigned __port);
  57. extern unsigned inpw(unsigned __port);
  58. extern unsigned outp(unsigned __port, unsigned __value);
  59. extern unsigned outpw(unsigned __port,unsigned __value);
  60. #ifdef __386__
  61. extern unsigned inpd(unsigned __port);
  62. extern unsigned outpd(unsigned __port, unsigned __value);
  63. #endif
  64. extern int putch(int __c);
  65. extern int ungetch(int __c);
  66. extern int vcprintf( const char *__format, __va_list __arg );
  67. extern int vcscanf( const char *__format, __va_list __arg );
  68.  
  69. #ifdef    __INLINE_FUNCTIONS__
  70.  #pragma intrinsic(inp,inpw,outp,outpw)
  71.  #ifdef __386__
  72.   #pragma intrinsic(inpd,outpd)
  73.  #endif
  74. #endif
  75.  
  76. #define _CONIO_H_INCLUDED
  77. #ifdef __cplusplus
  78. };
  79. #endif
  80. #endif
  81.              #include <errno.h>
  82. #include <sys\types.h>
  83. #include <direct.h>
  84. #include <stdio.h>
  85. #include <dos.h>
  86. #include <graph.h>
  87. #include <process.h>
  88.  
  89. int cx,cy;
  90.  
  91. void get_istring(int x,int y,char *s,int maxlen)
  92. {
  93.  char c;
  94.  int i;      
  95.  
  96.  cy=y;
  97.  cx=x+_getgtextextent(s);
  98.  for(;;)
  99.     {
  100.       _moveto(x,cy);
  101.       _outgtext(s);
  102.      if(kbhit())
  103.         {
  104.          c=getch();
  105.          if(c==0x08)
  106.                  {
  107.                     cursor_off();
  108.                      i=strlen(s);
  109.                     if(i)
  110.                         s[i-1]=0;
  111.                      cx=xs+_getgtextextent(s);
  112.                 }
  113.  
  114. /* done */
  115.  
  116.           else if(c==0x0d)
  117.             return;
  118.  
  119. /* add char */
  120.  
  121.          else
  122.             {i=strlen(s);
  123.              if(i<maxlen)
  124.                   {s[i]=c;
  125.                    s[i+1]=0;
  126.                    cursor_off();
  127.                      cx=xs+_getgtextextent(s);
  128.                 }
  129.             }
  130.         }
  131.      else
  132.          flash_cursor();
  133.      delay(100);
  134.     }
  135.  
  136. }
  137.  
  138. /*************************************************************************
  139.  *
  140.  *                         String requester
  141.  *
  142.  *                                         
  143.  *
  144.  *
  145.  *
  146.  *************************************************************************/
  147.  
  148. void open_string_requester(int x,int y,char *s,
  149.                                     int ntexts,char *texts,int flags,char textcol)
  150. {int yoff,i;
  151.  
  152.  set_color(_GREY);
  153.  _rectangle(_GFILLINTERIOR,x,y,400,180);
  154.  set_color(textcol); 
  155.  for(i=0,yst=y+50;i<ntexts;i++,yoff+=10)
  156.     {
  157.      _moveto(x+50,yst);
  158.        _outgtext(texts[i]);
  159.     }
  160.  get_istring(x+100,y+100,s,30);
  161.  
  162. }
  163.  
  164.  
  165.  
  166. ] ~   d  i    /*
  167.  *  graph.h     Graphics functions
  168.  *
  169.  *  Copyright by WATCOM International Corp. 1988-1994.  All rights reserved.
  170.  */
  171. #ifndef _GRAPH_H_INCLUDED
  172. #ifdef __cplusplus
  173. extern "C" {
  174. #endif
  175. #pragma pack(1);
  176.  
  177. #if defined ( __386__ )
  178.     #define _FAR
  179.     #define _HUGE
  180. #else
  181.     #define _FAR    __far
  182.     #define _HUGE   __huge
  183. #endif
  184.  
  185. #pragma library (graph);
  186.  
  187. struct xycoord {                /* structure for pixel position */
  188.     short   xcoord;
  189.     short   ycoord;
  190. };
  191.  
  192. struct _wxycoord {              /* structure for window position*/
  193.     double  wx;
  194.     double  wy;
  195. };
  196.  
  197. struct rccoord {                /* structure for text position  */
  198.     short   row;
  199.     short   col;
  200. };
  201.  
  202. struct videoconfig {            /* structure for _getvideoconfig */
  203.     short   numxpixels;
  204.     short   numypixels;
  205.     short   numtextcols;
  206.     short   numtextrows;
  207.     short   numcolors;
  208.     short   bitsperpixel;
  209.     short   numvideopages;
  210.     short   mode;
  211.     short   adapter;
  212.     short   monitor;
  213.     short   memory;
  214. };
  215.  
  216. struct textsettings {           /* structure for _gettextsettings */
  217.     short   basevectorx;
  218.     short   basevectory;
  219.     short   txpath;
  220.     short   height;
  221.     short   width;
  222.     short   spacing;
  223.     short   horizalign;
  224.     short   vertalign;
  225. };
  226.  
  227. struct _fontinfo {              /* structure for _getfontinfo */
  228.     short   type;
  229.     short   ascent;
  230.     short   pixwidth;
  231.     short   pixheight;
  232.     short   avgwidth;
  233.     char    filename[ 81 ];
  234.     char    facename[ 32 ];
  235. };
  236.  
  237. /* Calling conventions for -fpi(87) are different than for -fpc */
  238. #if defined( __FPI__ )
  239.     #define _arc_w              _arc_w_87
  240.     #define _ellipse_w          _ellipse_w_87
  241.     #define _floodfill_w        _floodfill_w_87
  242.     #define _getimage_w         _getimage_w_87
  243.     #define _getpixel_w         _getpixel_w_87
  244.     #define _getviewcoord_w     _getviewcoord_w_87
  245.     #define _grtext_w           _grtext_w_87
  246.     #define _imagesize_w        _imagesize_w_87
  247.     #define _lineto_w           _lineto_w_87
  248.     #define _moveto_w           _moveto_w_87
  249.     #define _pie_w              _pie_w_87
  250.     #define _putimage_w         _putimage_w_87
  251.     #define _rectangle_w        _rectangle_w_87
  252.     #define _setcharsize_w      _setcharsize_w_87
  253.     #define _setcharspacing_w   _setcharspacing_w_87
  254.     #define _setpixel_w         _setpixel_w_87
  255.     #define _setwindow          _setwindow_87
  256. #endif
  257.  
  258. /* Video Setup and Query Functions */
  259.  
  260. short _FAR              _setvideomode( short );
  261. short _FAR              _setvideomoderows( short, short );
  262. struct videoconfig _FAR * _FAR
  263.             _getvideoconfig( struct videoconfig _FAR * );
  264. short _FAR              _grstatus( void );
  265. short _FAR              _setactivepage( short );
  266. short _FAR              _getactivepage( void );
  267. short _FAR              _setvisualpage( short );
  268. short _FAR              _getvisualpage( void );
  269.  
  270. #define _MAXRESMODE     (-3)    /* graphics mode with highest res. */
  271. #define _MAXCOLORMODE   (-2)    /* graphics mode with most colours */
  272. #define _DEFAULTMODE    (-1)    /* restore screen to original mode */
  273. #define _TEXTBW40       0       /* 40 x 25 text, 16 grey           */
  274. #define _TEXTC40        1       /* 40 x 25 text, 16/8 color        */
  275. #define _TEXTBW80       2       /* 80 x 25 text, 16 grey           */
  276. #define _TEXTC80        3       /* 80 x 25 text, 16/8 color        */
  277. #define _MRES4COLOR     4       /* 320 x 200, 4 color              */
  278. #define _MRESNOCOLOR    5       /* 320 x 200, 4 grey               */
  279. #define _HRESBW         6       /* 640 x 200, BW                   */
  280. #define _TEXTMONO       7       /* 80 x 25 text, BW                */
  281. #define _HERCMONO       11      /* 720 x 350, BW                   */
  282. #define _MRES16COLOR    13      /* 320 x 200, 16 color             */
  283. #define _HRES16COLOR    14      /* 640 x 200, 16 color             */
  284. #define _ERESNOCOLOR    15      /* 640 x 350, BW                   */
  285. #define _ERESCOLOR      16      /* 640 x 350, 4 or 16 color        */
  286. #define _VRES2COLOR     17      /* 640 x 480, BW                   */
  287. #define _VRES16COLOR    18      /* 640 x 480, 16 color             */
  288. #define _MRES256COLOR   19      /* 320 x 200, 256 color