three_finger_flag(3alleg4)
π three_finger_flag β the manual page, but make it cute
okay bestie, welcome to three_finger_flag(3alleg4) from the Allegro manual β yes, that Allegro, the game programming library. sit down, grab a strawberry π, we're talking about the lil flag that controls your program's β¨emergency exitβ¨. it's giving "don't touch that button" energy and honestly? iconic.
β¨ SYNOPSIS β¨
#include <allegro.h>
extern int three_finger_flag;
that's it. one extern int. no cap. π«Ά
π DESCRIPTION π
so here's the tea, bestie. the DJGPP keyboard handler ships with an 'emergency exit' sequence that you can use to kill off your program β like, full on yank the plug. π
if you're running under DOS, that sequence is the classic three finger salute: ctrl+alt+del. periodt.
but here's the plot twist: most multitasking OS's will trap that combination before it ever reaches the Allegro handler, so in that case you can use the alternative ctrl+alt+end instead. sneaky, but it works. π
and now the important part β if you wanna disable this behaviour in release versions of your program, just set this flag to FALSE. that's the whole vibe check. no extra steps. π
πΈ SEE ALSO πΈ
install_keyboard(3alleg4)β go read it, it's the sibling page, they're a package deal π§
Allegro, version 4.4.3 β mwah, that's the whole page bestie, go forth and set your flags 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