Subj : Re: cputs does not work in graphics-modi ? To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Sun Sep 11 2005 10:48 am R.Wieser wrote: >> >But do you think that mode 12h (driver=vga, mode=vgahi) would have >changed >> >in between ? As far back as I can see mode 12h has allways been 80x30 >text >> >> No, it has always been listed in the manuals as 640x480 >> graphics mode. > >Should I be offended, or should I grin ?. Graphics mode 12h lists (in >multiple documents) 80x30 as text-size. But not in Borland docs, which is where it counts. Borland _only_ documents it as a graphics window. You are attempting to use it in an undocumented manner. >> No, I'm assuming that what you are saying is what you are doing. >> Mode 12h is a graphics mode, and is being used with text commands, >> which is not "supported" by the C language. > >Would you care to supply some body (documentation) to the above "it doesn't" >? I don't respond too well to stuff that looks like "findings converted to >'facts' " (bugs with seniority). Find me where it *is* supported by the C language. Find me where Borland says that mode 12h is a text window. Show me anywhere where Borland makes any reference to a 30 line text screen. >> >I'm sorry ? The bios console-output works without any problems (after I >> >> cputs() is documented to write to a text window, not a >> graphics window. It is documented to be able to use >> Bios calls to do so. It is Not documented that said Bios >> calls will work on graphics screens. > >Sorry, but you are playing dumb here No, I'm playing straight. If it isn't documented to work, there is no real surprise when it doesn't. >> Other way around. >> cputs() is the work-around. >> outtext() and outtextxy() are the proper methods. > >. If you want to see it that way. To me it's just fancy, >resource-wasting (especially when looking at way-back-when machines) stuff. On that we agree. But even for the Bios, it is wastefully slow to BitBlt those characters onto the graphics screen. If you want speed, use the 43/50 line text mode. But the point is, mode 12h "to Borland" is a graphics mode, and the text mode gotoxy() doesn't recognize it, so fails silently (beyond line 25), as documented. .