exswitch(3alleg4)
β¨ exswitch β¨
okay so bestie, welcome to exswitch β a lil example page from the Allegro manual (that's 3alleg4, the Allegro game programming library, if the suffix wasn't giving it away π
). This one's all about controlling the console switch mode for background running. π
π SYNOPSIS π
#include <allegro.h>
Example exswitch
π DESCRIPTION π
so this program is literally a demo of how to control the console switching mode so your program can keep vibing in the background. main character energy fr fr. π¦
but β important β these functions don't apply to every platform and driver. like, you straight up can't control the switching mode from a DOS program. no cap. so don't come for me when it doesn't work there. π
and yes, I know the fractal drawing is very slow β that's the point! π― it's slow on purpose so you can easily check whether it keeps on working in the background after you switch away from the app. it's giving "feature not bug". periodt.
depending on the type of switching mode you selected, you'll see whether the contents of the screen are preserved or not. so like, eyes on the screen, bestie. πβ¨
πΈ SEE ALSO πΈ
go read these next, i promise they're iconic π:
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)textprintf_centre_ex(3alleg4)
mwah π that's the whole page, bestie. this lil slice of the <strong>Allegro manual</strong> is serving <strong>version 4.4.3</strong>, and yeah, the page is dated the same as that version drop β it's old but it <em>ate</em>. go forth and switch consoles responsibly π«Άπ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms