Well, it doesn't matter if it is running in a DOS box on 98 or in true DOS mode, DJGPP creates true DOS programs. That's why I mentioned that allegro_message() does work in Windows (mingw32). For DOS, allegro_message() is just wrapping up a standard C function, so you might try something like flush(). Really that function was to make outputting quick and dirty text in Windows apps easy (not that it is hard anyway).
Anyway, that really isn't what Allegro is for. You should really put it into a graphic mode and use any of these:
textout()
textout_centre()
textout_right()
textout_justify()
textprintf()
textprintf_centre()
textprintf_right()
textprintf_justify()
(See docs for more.)
Here is a better test program:
PHP Code:
#include <allegro.h>
int main()
{
// Initialize Allegro.
allegro_init();
// Set the resolution to 640 by 480 with SAFE autodetection.
set_gfx_mode(GFX_SAFE, 640, 480, 0, 0);
// Installing the keyboard handler.
install_keyboard();
// Printing text to the screen.
textout(screen, font, "Hello World!", 1, 1, 10);
textout(screen, font, "Press ESCape to quit.", 1, 12, 11);
// Looping until the ESCape key is pressed.
while(! key[KEY_ESC])
poll_keyboard(); /* This may not be necessary, there is a flag to check. */
// Exit program.
allegro_exit();
return 0;
}
// Some Allegro magic for platform compatibility and timing.
END_OF_MAIN();