Path: utzoo!utgpu!watmath!clyde!att!rutgers!mailrus!bbn!husc6!hscfvax!xmjschm From: xmjschm@hscfvax.harvard.edu (MJSchmelzer) Newsgroups: comp.lang.c Subject: Re: turboc - clrscr() & gotoxy() functions Message-ID: <685@hscfvax.harvard.edu> Date: 2 Dec 88 17:47:40 GMT References: <3ff17f35.7183@apollo.COM> <1045@naucse.UUCP> Reply-To: xmjschm@hscfvax.UUCP (R00100@MJSchmelzer) Organization: Health Sciences Computing Facility, Harvard University Lines: 38 In article <1045@naucse.UUCP> wew@naucse.UUCP (Bill Wilson) writes: >From article <3ff17f35.7183@apollo.COM>, by landry@apollo.COM (Chris Landry): >> Does TurboC allow screen functions like... >> clrscr(); gotoxy(x,y); clreol(); etc? > >Prior to version 1.5 you had to write all of your own graphics >primitives. Here are the graphics primitives I used for TurboC 1.0 : void cls() { union REGS r; r.h.ah=6; r.h.al=0; r.h.ch=0; r.h.cl=0; r.h.dh=24; r.h.dl=79; r.h.bh=7; int86(0x10, &r, &r); } void move_to (row, col) int row; int col; { union REGS r; r.h.ah=2; r.h.dh=row; r.h.dl=col; r.h.bh=0; int86(0x10, &r, &r); } -- ============== xmjschm@harvspha.BITNET ============= "Your soul is mine, Mike Schmelzer xmjschm@hscfvax.harvard.edu fork it over." ===================================================== - Salem 66