| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#11
| |||
| |||
| On 2008-08-28, Jim Leonard <MobyGamer@gmail.com> wrote: >> > Incorrect colors are the result of MS-DOS painting just the characters >> > while leaving the color attributes alone. >> >> But what colors does MS-DOS use to paint the characters? > > It doesn't use color, it only prints characters. That's why, if the > screen was recolored, the characters will show up using the previous > coloring. IIRC it does partially. In general you are right, but (either dos or bios) has some color to fill newly inserted lines with. |
|
#12
| |||
| |||
| In comp.lang.pascal.borland message <g9glu0$t59$1@news.net.uni-c.dk>, Mon, 1 Sep 2008 14:07:27, Schjaer <jsj@nospambyg.dtu.dk> posted: > >What you should be doing is saving the screen contents when starting, >then restoring them on exit (along with the correct screen mode and >cursor location). > >That sounds like the solution. How does one do that? <URL:http://www.merlyn.demon.co.uk/programs/shower.pas> does that. -- (c) John Stockton, nr London UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME. <URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/&c., FAQqy topics & links; <URL:http://www.merlyn.demon.co.uk/clpb-faq.txt> RAH Prins : c.l.p.b mFAQ; <URL:ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip> Timo Salmi's Turbo Pascal FAQ. |
|
#13
| |||
| |||
| On 22 Srp, 13:51, "Schjaer" <j...@nospambyg.dtu.dk> wrote: > Hi group > > After exiting a DOS program that manipulates the screen colors I sometimes > (but not always) don't get the same colors back that existed before invoking > the program. I have tried to save then restore TextAttr within the program > but that seems to have no effect. I have observed this in both TurboPascal > 7.0 and FreePascal. It seems to be a question of sheer luck if the original > screen colors are restored or not at exit. Any suggestions? > > Jorgen See www.trsek.com/pas/trsek procedure put_window, get_window. It's solve your problem. TrSek |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.