Provided by: allegro4-doc_4.4.3.1-1_all bug


       exswitch  -  Controlling  the  console  switch  mode  for background running. Allegro game
       programming library.


       #include <allegro.h>

       Example exswitch


       This program shows how to control the console switching mode, and let your program run  in
       the  background. These functions don't apply to every platform and driver, for example you
       can't control the switching mode from a DOS program.

       Yes, I know the fractal drawing is very slow: that's the point!  This is so you can easily
       check whether it goes on working in the background after you switch away from the app.

       Depending on the type of selected switching mode, you will see whether the contents of the
       screen are preserved or not.


       BITMAP(3alleg4), END_OF_FUNCTION(3alleg4),  END_OF_MAIN(3alleg4),  LOCK_FUNCTION(3alleg4),
       LOCK_VARIABLE(3alleg4),     PALETTE(3alleg4),     SCREEN_H(3alleg4),    SCREEN_W(3alleg4),
       acquire_bitmap(3alleg4),         acquire_screen(3alleg4),          allegro_error(3alleg4),
       allegro_exit(3alleg4),           allegro_init(3alleg4),          allegro_message(3alleg4),
       bitmap_color_depth(3alleg4),            blit(3alleg4),            clear_to_color(3alleg4),
       create_sub_bitmap(3alleg4),       desktop_palette(3alleg4),       destroy_bitmap(3alleg4),
       font(3alleg4),       get_display_switch_mode(3alleg4),        gfx_mode_select_ex(3alleg4),
       install_int(3alleg4),          install_keyboard(3alleg4),          install_mouse(3alleg4),
       install_timer(3alleg4),  keypressed(3alleg4),  makecol(3alleg4),   palette_color(3alleg4),
       putpixel(3alleg4),     readkey(3alleg4),    rectfill(3alleg4),    release_bitmap(3alleg4),
       release_screen(3alleg4),            screen(3alleg4),             set_color_depth(3alleg4),
       set_display_switch_callback(3alleg4),                    set_display_switch_mode(3alleg4),
       set_gfx_mode(3alleg4),          set_palette(3alleg4),          textout_centre_ex(3alleg4),