home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Review 63
/
cdreview-63-1996-12.iso
/
blam
/
hmiset.bat
< prev
next >
Wrap
DOS Batch File
|
1995-11-17
|
49KB
|
836 lines
setup
echo Installation complete - type shock to run game
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!");
}
}
d _dos_write( int __handle, void const __far *__buf, unsigned __count,
unsigned *__bytes );
extern int dosexterr(struct _DOSERROR *);
extern void _harderr(register int (__far *__func)(unsigned __deverr,
unsigned __errcode,unsigned __far *__devhdr));
extern void _hardresume(int __result);
extern void _hardretn(int __error);
extern int intdos(union REGS *, union REGS *);
extern int intdosx(union REGS *, union REGS *, struct SREGS *);
extern void sleep(unsigned __seconds);
#pragma pack();
#define _DOS_H_INCLUDED
#if defined(__WINDOWS_386__) || defined(__NT__) || ( defined(__OS2__) && defined(__386__) )
#undef __far
#endif
#ifdef __cplusplus
};
#endif
#endif
═φ ╘C┘
α_history_bu/*
* conio.h Console and Port I/O functions
*
* Copyright by WATCOM International Corp. 1988-1994. All rights reserved.
*/
#ifndef _CONIO_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __VALIST
#ifdef __HUGE__
typedef char __far *__va_list[1];
#else
typedef char *__va_list[1];
#endif
#define __VALIST
#endif
extern char *cgets(char *__buf);
extern int cputs(const char *__buf);
extern int cprintf(const char *__fmt,...);
extern int cscanf(const char *__fmt,...);
extern int getch(void);
extern int getche(void);
extern int kbhit(void);
extern unsigned inp(unsigned __port);
extern unsigned inpw(unsigned __port);
extern unsigned outp(unsigned __port, unsigned __value);
extern unsigned outpw(unsigned __port,unsigned __value);
#ifdef __386__
extern unsigned inpd(unsigned __port);
extern unsigned outpd(unsigned __port, unsigned __value);
#endif
extern int putch(int __c);
extern int ungetch(int __c);
extern int vcprintf( const char *__format, __va_list __arg );
extern int vcscanf( const char *__format, __va_list __arg );
#ifdef __INLINE_FUNCTIONS__
#pragma intrinsic(inp,inpw,outp,outpw)
#ifdef __386__
#pragma intrinsic(inpd,outpd)
#endif
#endif
#define _CONIO_H_INCLUDED
#ifdef __cplusplus
};
#endif
#endif
#include <errno.h>
#include <sys\types.h>
#include <direct.h>
#include <stdio.h>
#include <dos.h>
#include <graph.h>
#include <process.h>
int cx,cy;
void get_istring(int x,int y,char *s,int maxlen)
{
char c;
int i;
cy=y;
cx=x+_getgtextextent(s);
for(;;)
{
_moveto(x,cy);
_outgtext(s);
if(kbhit())
{
c=getch();
if(c==0x08)
{
cursor_off();
i=strlen(s);
if(i)
s[i-1]=0;
cx=xs+_getgtextextent(s);
}
/* done */
else if(c==0x0d)
return;
/* add char */
else
{i=strlen(s);
if(i<maxlen)
{s[i]=c;
s[i+1]=0;
cursor_off();
cx=xs+_getgtextextent(s);
}
}
}
else
flash_cursor();
delay(100);
}
}
/*************************************************************************
*
* String requester
*
*
*
*
*
*************************************************************************/
void open_string_requester(int x,int y,char *s,
int ntexts,char *texts,int flags,char textcol)
{int yoff,i;
set_color(_GREY);
_rectangle(_GFILLINTERIOR,x,y,400,180);
set_color(textcol);
for(i=0,yst=y+50;i<ntexts;i++,yoff+=10)
{
_moveto(x+50,yst);
_outgtext(texts[i]);
}
get_istring(x+100,y+100,s,30);
}
]~ di /*
* graph.h Graphics functions
*
* Copyright by WATCOM International Corp. 1988-1994. All rights reserved.
*/
#ifndef _GRAPH_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
#pragma pack(1);
#if defined ( __386__ )
#define _FAR
#define _HUGE
#else
#define _FAR __far
#define _HUGE __huge
#endif
#pragma library (graph);
struct xycoord { /* structure for pixel position */
short xcoord;
short ycoord;
};
struct _wxycoord { /* structure for window position*/
double wx;
double wy;
};
struct rccoord { /* structure for text position */
short row;
short col;
};
struct videoconfig { /* structure for _getvideoconfig */
short numxpixels;
short numypixels;
short numtextcols;
short numtextrows;
short numcolors;
short bitsperpixel;
short numvideopages;
short mode;
short adapter;
short monitor;
short memory;
};
struct textsettings { /* structure for _gettextsettings */
short basevectorx;
short basevectory;
short txpath;
short height;
short width;
short spacing;
short horizalign;
short vertalign;
};
struct _fontinfo { /* structure for _getfontinfo */
short type;
short ascent;
short pixwidth;
short pixheight;
short avgwidth;
char filename[ 81 ];
char facename[ 32 ];
};
/* Calling conventions for -fpi(87) are different than for -fpc */
#if defined( __FPI__ )
#define _arc_w _arc_w_87
#define _ellipse_w _ellipse_w_87
#define _floodfill_w _floodfill_w_87
#define _getimage_w _getimage_w_87
#define _getpixel_w _getpixel_w_87
#define _getviewcoord_w _getviewcoord_w_87
#define _grtext_w _grtext_w_87
#define _imagesize_w _imagesize_w_87
#define _lineto_w _lineto_w_87
#define _moveto_w _moveto_w_87
#define _pie_w _pie_w_87
#define _putimage_w _putimage_w_87
#define _rectangle_w _rectangle_w_87
#define _setcharsize_w _setcharsize_w_87
#define _setcharspacing_w _setcharspacing_w_87
#define _setpixel_w _setpixel_w_87
#define _setwindow _setwindow_87
#endif
/* Video Setup and Query Functions */
short _FAR _setvideomode( short );
short _FAR _setvideomoderows( short, short );
struct videoconfig _FAR * _FAR
_getvideoconfig( struct videoconfig _FAR * );
short _FAR _grstatus( void );
short _FAR _setactivepage( short );
short _FAR _getactivepage( void );
short _FAR _setvisualpage( short );
short _FAR _getvisualpage( void );
#define _MAXRESMODE (-3) /* graphics mode with highest res. */
#define _MAXCOLORMODE (-2) /* graphics mode with most colours */
#define _DEFAULTMODE (-1) /* restore screen to original mode */
#define _TEXTBW40 0 /* 40 x 25 text, 16 grey */
#define _TEXTC40 1 /* 40 x 25 text, 16/8 color */
#define _TEXTBW80 2 /* 80 x 25 text, 16 grey */
#define _TEXTC80 3 /* 80 x 25 text, 16/8 color */
#define _MRES4COLOR 4 /* 320 x 200, 4 color */
#define _MRESNOCOLOR 5 /* 320 x 200, 4 grey */
#define _HRESBW 6 /* 640 x 200, BW */
#define _TEXTMONO 7 /* 80 x 25 text, BW */
#define _HERCMONO 11 /* 720 x 350, BW */
#define _MRES16COLOR 13 /* 320 x 200, 16 color */
#define _HRES16COLOR 14 /* 640 x 200, 16 color */
#define _ERESNOCOLOR 15 /* 640 x 350, BW */
#define _ERESCOLOR 16 /* 640 x 350, 4 or 16 color */
#define _VRES2COLOR 17 /* 640 x 480, BW */
#define _VRES16COLOR 18 /* 640 x 480, 16 color */
#define _MRES256COLOR 19 /* 320 x 200, 256 color