Article View: comp.os.msdos.programmer
Article #1705Turbo C
From: Dennett Jaques
Date: Sat, 04 Aug 1990 12:27
Date: Sat, 04 Aug 1990 12:27
36 lines
1806 bytes
1806 bytes
G'day there,
I am having a small problem with some functions in Turbo C 2.01 relating
to 'gets' and 'scanf' when in graphics mode.
The program runs fine on EGA VGA displays but the same code when run on
Hercules equipped machines causes small lines of scattered pixels to be
displayed across the top half of the screen at the point where 'scanf' or
'gets' are called. Additional pixels appear as keyboard input is processed
by these functions. No characters are echoed to the screen at this time
although they should be, EGA and VGA OK here.
On the other hand if I program using 'getch' in place of the above - this
works for all types of graphics cards.
But this method is too sloppy.
The above code first uses 'InitGraph' to determin display hardware.
Anybody have any thoughts?
Cheers.
Dennett Jaques.
_________________________________________________________________
,-_|\ Network Analyst E-mail: dennett@usage.csd.unsw.edu.au
/ \ The University of N.S.W Phone: +61 2 697-2324
\_,-._* <- Sydney, AUSTRALIA FAX: +61 2 662-8665
v _________________________________________________________________
When I want my employers opinion,
I'll give it to them.
Technical Details
Message-ID:
<789@usage.csd.unsw.oz.au>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!munnari.oz.au!metro!usage.csd.unsw.oz.au!dennettShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!munnari.oz.au!metro!usage.csd.unsw.oz.au!dennett From: dennett@usage.csd.unsw.oz.au (Dennett Jaques) Newsgroups: comp.os.msdos.programmer,comp.lang.c Subject: Turbo C Keywords: Hercules problems Message-ID: <789@usage.csd.unsw.oz.au> Date: 4 Aug 90 12:27:36 GMT Followup-To: comp.os.msdos.programmer Organization: Computing Services Dept, UNSW, Australia Lines: 36