caca_attr(3caca)
π caca_attr β libcaca attribute definitions β¨
okay so bestie, welcome to caca_attr(3caca), straight out of the libcaca manual π this page is literally the vibe check for colours, styles, events and keys β all the little constants that make text-mode graphics look gorgeous. no cap, it's iconic.
πΈ SYNOPSIS πΈ
π Topics
- libcaca basic functions β the starter pack, iykyk π«Ά
π¦ Data Structures
struct caca_eventβ Handling of user events. πstruct caca_optionβ Option parsing. π§Ύ
π Enumerations
enum caca_colorβ {CACA_BLACK= 0x00,CACA_BLUE= 0x01,CACA_GREEN= 0x02,CACA_CYAN= 0x03,CACA_RED= 0x04,CACA_MAGENTA= 0x05,CACA_BROWN= 0x06,CACA_LIGHTGRAY= 0x07,CACA_DARKGRAY= 0x08,CACA_LIGHTBLUE= 0x09,CACA_LIGHTGREEN= 0x0a,CACA_LIGHTCYAN= 0x0b,CACA_LIGHTRED= 0x0c,CACA_LIGHTMAGENTA= 0x0d,CACA_YELLOW= 0x0e,CACA_WHITE= 0x0f,CACA_DEFAULT= 0x10,CACA_TRANSPARENT= 0x20 } π¨enum caca_styleβ {CACA_BOLD= 0x01,CACA_ITALICS= 0x02,CACA_UNDERLINE= 0x04,CACA_BLINK= 0x08 } β¨enum caca_event_typeβ {CACA_EVENT_NONE= 0x0000,CACA_EVENT_KEY_PRESS= 0x0001,CACA_EVENT_KEY_RELEASE= 0x0002,CACA_EVENT_MOUSE_PRESS= 0x0004,CACA_EVENT_MOUSE_RELEASE= 0x0008,CACA_EVENT_MOUSE_MOTION= 0x0010,CACA_EVENT_RESIZE= 0x0020,CACA_EVENT_QUIT= 0x0040,CACA_EVENT_ANY= 0xffff } β User event type enumeration. π±οΈenum caca_keyβ {CACA_KEY_UNKNOWN= 0x00,CACA_KEY_CTRL_A= 0x01,CACA_KEY_CTRL_B= 0x02,CACA_KEY_CTRL_C= 0x03,CACA_KEY_CTRL_D= 0x04,CACA_KEY_CTRL_E= 0x05,CACA_KEY_CTRL_F= 0x06,CACA_KEY_CTRL_G= 0x07,CACA_KEY_BACKSPACE= 0x08,CACA_KEY_TAB= 0x09,CACA_KEY_CTRL_J= 0x0a,CACA_KEY_CTRL_K= 0x0b,CACA_KEY_CTRL_L= 0x0c,CACA_KEY_RETURN= 0x0d,CACA_KEY_CTRL_N= 0x0e,CACA_KEY_CTRL_O= 0x0f,CACA_KEY_CTRL_P= 0x10,CACA_KEY_CTRL_Q= 0x11,CACA_KEY_CTRL_R= 0x12,CACA_KEY_PAUSE= 0x13,CACA_KEY_CTRL_T= 0x14,CACA_KEY_CTRL_U= 0x15,CACA_KEY_CTRL_V= 0x16,CACA_KEY_CTRL_W= 0x17,CACA_KEY_CTRL_X= 0x18,CACA_KEY_CTRL_Y= 0x19,CACA_KEY_CTRL_Z= 0x1a,CACA_KEY_ESCAPE= 0x1b,CACA_KEY_DELETE= 0x7f,CACA_KEY_UP= 0x111,CACA_KEY_DOWN= 0x112,CACA_KEY_LEFT= 0x113,CACA_KEY_RIGHT= 0x114,CACA_KEY_INSERT= 0x115,CACA_KEY_HOME= 0x116,CACA_KEY_END= 0x117,CACA_KEY_PAGEUP= 0x118,CACA_KEY_PAGEDOWN= 0x119,CACA_KEY_F1= 0x11a,CACA_KEY_F2= 0x11b,CACA_KEY_F3= 0x11c,CACA_KEY_F4= 0x11d,CACA_KEY_F5= 0x11e,CACA_KEY_F6= 0x11f,CACA_KEY_F7= 0x120,CACA_KEY_F8= 0x121,CACA_KEY_F9= 0x122,CACA_KEY_F10= 0x123,CACA_KEY_F11= 0x124,CACA_KEY_F12= 0x125,CACA_KEY_F13= 0x126,CACA_KEY_F14= 0x127,CACA_KEY_F15= 0x128 } β Special key values. β¨οΈ
π Detailed Description π
Colours and styles that you can use with caca_set_attr(). that's it, that's the whole thing β but like, it's everything. π¨β¨
π Enumeration Type Documentation π
π enum caca_color
libcaca colour keyword π
Enumerator
CACA_BLACKβ The colour index for black. π€CACA_BLUEβ The colour index for blue. πCACA_GREENβ The colour index for green. πCACA_CYANβ The colour index for cyan. π©΅CACA_REDβ The colour index for red. β€οΈCACA_MAGENTAβ The colour index for magenta. πCACA_BROWNβ The colour index for brown. π€CACA_LIGHTGRAYβ The colour index for light gray. π€CACA_DARKGRAYβ The colour index for dark gray. π©ΆCACA_LIGHTBLUEβ The colour index for blue. (yes bestie, the page literally says blue here β not my typo, that's the doc π)CACA_LIGHTGREENβ The colour index for light green. πCACA_LIGHTCYANβ The colour index for light cyan. π§CACA_LIGHTREDβ The colour index for light red. πCACA_LIGHTMAGENTAβ The colour index for light magenta. πΈCACA_YELLOWβ The colour index for yellow. πCACA_WHITEβ The colour index for white. π€CACA_DEFAULTβ The output driver's default colour. β¨CACA_TRANSPARENTβ The transparent colour. π«₯
π¦ enum caca_style
libcaca style keyword β¨
Enumerator
CACA_BOLDβ The style mask for bold. π«ΆCACA_ITALICSβ The style mask for italics. π«CACA_UNDERLINEβ The style mask for underline. γ°οΈCACA_BLINKβ The style mask for blink. ποΈβ¨
π enum caca_event_type
This enum serves two purposes, and honestly? multitasking queen π:
- Build listening masks for
caca_get_event(). π§ - Define the type of a
caca_event_t. π·οΈ
Enumerator
CACA_EVENT_NONEβ No event. πCACA_EVENT_KEY_PRESSβ A key was pressed. β¨οΈCACA_EVENT_KEY_RELEASEβ A key was released. π«³CACA_EVENT_MOUSE_PRESSβ A mouse button was pressed. π±οΈCACA_EVENT_MOUSE_RELEASEβ A mouse button was released. π±οΈπ¨CACA_EVENT_MOUSE_MOTIONβ The mouse was moved. πCACA_EVENT_RESIZEβ The window was resized. πCACA_EVENT_QUITβ The user requested to quit. πͺCACA_EVENT_ANYβ Bitmask for any event. π
β¨οΈ enum caca_key
Special key values returned by caca_get_event() for which there is no printable ASCII equivalent β like, they're too special for plain text, periodt π
Enumerator
CACA_KEY_UNKNOWNβ Unknown key. βCACA_KEY_CTRL_Aβ The Ctrl-A key. π °οΈCACA_KEY_CTRL_Bβ The Ctrl-B key. π ±οΈCACA_KEY_CTRL_Cβ The Ctrl-C key. π«’CACA_KEY_CTRL_Dβ The Ctrl-D key. π©CACA_KEY_CTRL_Eβ The Ctrl-E key. πCACA_KEY_CTRL_Fβ The Ctrl-F key. π¦©CACA_KEY_CTRL_Gβ The Ctrl-G key. πCACA_KEY_BACKSPACEβ The backspace key. β¬ οΈCACA_KEY_TABβ The tabulation key. βΉCACA_KEY_CTRL_Jβ The Ctrl-J key. π§CACA_KEY_CTRL_Kβ The Ctrl-K key. πCACA_KEY_CTRL_Lβ The Ctrl-L key. πCACA_KEY_RETURNβ The return key. β©οΈCACA_KEY_CTRL_Nβ The Ctrl-N key. π₯CACA_KEY_CTRL_Oβ The Ctrl-O key. πCACA_KEY_CTRL_Pβ The Ctrl-P key. πΌCACA_KEY_CTRL_Qβ The Ctrl-Q key. πΈCACA_KEY_CTRL_Rβ The Ctrl-R key. πΉCACA_KEY_PAUSEβ The pause key. βΈοΈCACA_KEY_CTRL_Tβ The Ctrl-T key. πCACA_KEY_CTRL_Uβ The Ctrl-U key. βοΈCACA_KEY_CTRL_Vβ The Ctrl-V key. π»CACA_KEY_CTRL_Wβ The Ctrl-W key. πCACA_KEY_CTRL_Xβ The Ctrl-X key. βCACA_KEY_CTRL_Yβ The Ctrl-Y key. πCACA_KEY_CTRL_Zβ The Ctrl-Z key. π€CACA_KEY_ESCAPEβ The escape key. πββοΈπ¨CACA_KEY_DELETEβ The delete key. ποΈCACA_KEY_UPβ The up arrow key. β¬οΈCACA_KEY_DOWNβ The down arrow key. β¬οΈCACA_KEY_LEFTβ The left arrow key. β¬ οΈCACA_KEY_RIGHTβ The right arrow key. β‘οΈCACA_KEY_INSERTβ The insert key. π₯CACA_KEY_HOMEβ The home key. πCACA_KEY_ENDβ The end key. πCACA_KEY_PAGEUPβ The page up key. πβ¬οΈCACA_KEY_PAGEDOWNβ The page down key. πβ¬οΈCACA_KEY_F1β The F1 key. πΉCACA_KEY_F2β The F2 key. πΉCACA_KEY_F3β The F3 key. πΉCACA_KEY_F4β The F4 key. πΉCACA_KEY_F5β The F5 key. πΉCACA_KEY_F6β The F6 key. πΉCACA_KEY_F7β The F7 key. πΉCACA_KEY_F8β The F8 key. πΉCACA_KEY_F9β The F9 key. πΉCACA_KEY_F10β The F10 key. πΉCACA_KEY_F11β The F11 key. πΉCACA_KEY_F12β The F12 key. πΉCACA_KEY_F13β The F13 key. πΉCACA_KEY_F14β The F14 key. πΉCACA_KEY_F15β The F15 key. πΉ
π«Ά Author π«Ά
Generated automatically by Doxygen for libcaca from the source code. so not me writing it by hand, the robots did that π π€
the cute lil sign-off: this page is Version 0.99.beta20, dated Wed May 13 2026 09:45:08 β love that for us. stay colourful, bestie. ππ¦β¨
π¦ where this page comes from
- opensuse-leap 16.0: libcaca-devel 0.99.beta20-160000.3.1 Β· WTFPL
- opensuse-leap 16.0: libcaca-devel 0.99.beta20-160000.3.1 Β· WTFPL
- opensuse-leap 16.0: libcaca-devel 0.99.beta20-160000.3.1 Β· WTFPL
- opensuse-leap 16.0: libcaca-devel 0.99.beta20-160000.3.1 Β· WTFPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms