Article View: comp.sys.ibm.pc
Article #41568Re: Writing text to EGA screen in Turbo C 2.0
From: Shane Dawalt
Date: Sat, 03 Feb 1990 17:45
Date: Sat, 03 Feb 1990 17:45
27 lines
1602 bytes
1602 bytes
in article <14015@reed.UUCP>, minar@reed.bitnet (Nelson Minar,(???)) says: > > For some reason, I cannot get cprintf() to position on the screen at all. > Same problem with using outtext(). outtextxy() is supposed to position the > font, and then print, but these x,y coords are not transmitted to outtext(). Note that when you use outtextxy(), you must provide the text position in pixel coordinates ... not text coordinates. Something like the following works for me: outtextxy(textwidth()*column_location, (textheigth()+inter_line_space)* line_location, string_to_print); WHERE: column_location is the column to print the string line_location is the line to print the string inter_line_space is number of lines to skip between text line I'm not sure if gotoxy() and printf() functions are really "valid" in graphics mode. At least, I've never heard of using them in graphics mode. I use printf() and the like to write diagnostics to the EGA screen during program debugging. After debugging, I never write to the EGA screen using the text output functions. Shane Email: sdawalt@cs.wright.edu
Technical Details
Message-ID:
<1038@thor.wright.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!yale!mintaka!ogicse!emory!hubcap!ncrcae!ncrlnk!wright!sdawaltReferences:
<14015@reed.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!yale!mintaka!ogicse!emory!hubcap!ncrcae!ncrlnk!wright!sdawalt From: sdawalt@wright.EDU (Shane Dawalt) Newsgroups: comp.sys.ibm.pc Subject: Re: Writing text to EGA screen in Turbo C 2.0 Message-ID: <1038@thor.wright.EDU> Date: 3 Feb 90 17:45:56 GMT References: <14015@reed.UUCP> Distribution: na Organization: Wright State University, Dayton OH, 45435 Lines: 27