delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/04/08/12:27:32

Via: uk.ac.heriot-watt.cee; Thu, 8 Apr 1993 16:28:20 +0100
From: Peter JB King <pjbk AT cee DOT heriot-watt DOT ac DOT uk>
Subject: TurboC conio.h and bios.h for gcc ?
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Thu, 8 Apr 93 16:26:52 WET DST

I had a single reply to my query about use of Borland conio.h functions
with gcc, but my copy of gcc does not have this in its libraries, nor
does any of the copies that I have looked at on various archives

Who does have this in their library, and can they upload it to clarkson,
so that we can all benefit?

Since there seems to be no support for bios.h, I suppose that I'd better
do that myself :-)

> 
> //From:          Peter JB King <pjbk AT cee DOT heriot-watt DOT ac DOT uk>
> //Subject:       Turbo C library for gcc
> //
> //I have made fairly extensive use of the functions in conio.h and bios.h
>                                                        ^^^^^^^
>                                                         Exist and
>                                                                 works
> 
> //in the TurboC library.  It is clear that all (or nearly all) of them can
> //be simply implemented using the int86 function, or the appropriate
> //manipulations of the Screen... arrays and functions provided by gcc.
> //
> 
> >From FUNCS.DOC
> 
> the following exist, compile with -lpc
> 
> 
> ======================================== GPCONIO.H [PC]
> [SIMULATE BORLAND TEXT VIDEO FUNCTIONS FOR GNU C++]
> (For Borland compilers use CONIO.H !)
> 
> #define _NOCURSOR      0
> #define _SOLIDCURSOR   1
> #define _NORMALCURSOR  2
> struct text_info {unsigned char winleft, wintop, winright, winbottom,
> attribute,
>     normattr, currmode, screenheight, screenwidth, curx, cury;};
> enum text_modes { LASTMODE=-1, BW40=0, C40, BW80, C80, MONO=7,
> C4350=64 };
> enum COLORS {BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN,
> LIGHTGRAY, DARKGRAY,
>     LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED, LIGHTMAGENTA, YELLOW,
> WHITE };
> #define BLINK   0x80    /*  blink bit   */
> void    clreol(void);
> void    clrscr(void);
> void    gotoxy(int x, int y);
> int     wherex(void);
> int     wherey(void);
> int     putch(int c);
> void    delline(void);
> int     gettext(int left, int top, int right, int bottom, void
> *destin);
> void    gettextinfo(struct text_info *r);
> void    highvideo(void);
> void    insline(void);
> void    lowvideo(void);
> int    movetext(int left,int top,int right,int bottom,int
> destleft,int desttop);
> void    normvideo(void);
> int     puttext(int left, int top, int right, int bottom, void
> *source);
> void    textattr(int attr);
> void    textbackground(int color);
> void    textcolor(int color);
> void    textmode(int unused_mode);
> void    window(int left, int top, int right, int bottom);
> void    _setcursortype(int unused_type);
> int     cprintf(const char *format, ...);
> int     cputs(const char *str);
> void    gppconio_init(void);
> 
> 
>  Shaun Courtney      | INTERNET: courtney AT physci DOT uct DOT ac DOT za
>  Oceanography Dept.  |    or     ocean AT ucthpx DOT uct DOT ac DOT za
>  Univ. of Cape Town
> 


- -- 
Peter King, Computing & Electrical Eng.	JANET:	pjbk AT uk DOT ac DOT hw DOT cee
  Heriot-Watt University		ARPA:	pjbk AT cee DOT hw DOT ac DOT uk
  Riccarton, Edinburgh EH14 4AS 	UUCP:	..!uknet!cee.hw.ac.uk!pjbk
Phone: (+44) 31 451 3433                Fax: (+44) 31 451 3431

------------------------------ End of forwarded message 1


-- 
Peter King, Computing & Electrical Eng.	JANET:	pjbk AT uk DOT ac DOT hw DOT cee
  Heriot-Watt University		ARPA:	pjbk AT cee DOT hw DOT ac DOT uk
  Riccarton, Edinburgh EH14 4AS 	UUCP:	..!uknet!cee.hw.ac.uk!pjbk
Phone: (+44) 31 451 3433                Fax: (+44) 31 451 3431

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019