Category : C Source Code
Archive   : SNIP1292.ZIP
Filename : VIO.H

 
Output of file : VIO.H contained in archive : SNIP1292.ZIP
/*
** By: Jim Nutt
*/

#ifndef VIO_H
#define VIO_H

#if __cplusplus
extern "C" {
#endif

#if defined(__TURBOC__)
#define _far far
#define _pascal pascal
#endif

/* initialization and termination functions */

int _far VIOopen(void);
void _far VIOclose(void);

/* scrolling functions */

void _far VIOscrollright(int x1, int y1, int x2, int y2, int count);
void _far VIOscrollleft(int x1, int y1, int x2, int y2, int count);
void _far VIOscrollup(int x1, int y1, int x2, int y2, int count);
void _far VIOscrolldown(int x1, int y1, int x2, int y2, int count);

/* screen clear */

void _far VIOclear(int x1, int y1, int x2, int y2);

/* write to screen */

void _far VIOputc(const char c);
void _far VIOputs(const char far * s);
void _far VIOputr(int x, int y, int w, int h, int far * b);

/* read from screen */

int _far VIOgetca(const int x, const int y);
int far *_far VIOgetra(int x1, int y1, int x2, int y2, int far * b);

/* set colors */

void _far VIOsetfore(const int c);
void _far VIOsetback(const int c);

/* get current color settings */

int _far VIOgetfore(void);
int _far VIOgetback(void);

/* set the write cursor */

void _far VIOgotoxy(int x, int y);

/* update the screen and visible cursor */

void _far VIOupdate(...);

/* get the current write cursor position */

int _far VIOwherex(void);
int _far VIOwherey(void);

/* get screen information */

unsigned int _far VIOsegment(void);

int _far VIOcolumns(void);
int _far VIOrows(void);
int _far VIOmode(void);
int _far VIOheight(void);

/* set segment information */

void _far VIOsetSegment(unsigned int s);
void _far VIOsetRows(int r);
void _far VIOsetCols(int c);

/* get BIOS cursor location */

void _far VIOcursor(int _far * x, int _far * y, int _far * shape);

#if __cplusplus
} ;
#endif

#endif


  3 Responses to “Category : C Source Code
Archive   : SNIP1292.ZIP
Filename : VIO.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/