PDA

View Full Version : Console gaming using FPC



marcov
19-04-2005, 06:48 AM
The classic game of chain reaction:

http://www.stack.nl/~marcov/chainreaction.jpg

I'm still cleaning up the source ;_)

Bart
21-04-2005, 04:03 PM
How do you get coloured text output in the win32 console?

MichaelR
21-04-2005, 07:53 PM
If I remember correctly, I think you call SetConsoleTextAttribute in order to change the colors. There's a whole API dedicated to just console output, don't get it gets that much use, but its there if needed.

marcov
02-05-2005, 07:13 AM
If I remember correctly, I think you call SetConsoleTextAttribute in order to change the colors. There's a whole API dedicated to just console output, don't get it gets that much use, but its there if needed.

FPC has two systems that abstract this. A version of the CRT unit, and a separate, more powerful system that doublebuffers output. This system (units keyboard/video/mouse) is also used for the textmode ide

Note that heavy textmode applications are only usable on NT/2000/XP, the textmode driver of win9x is very slow.