TICKIT_PEN_ATTRNAME(3)
π TICKIT_PEN_ATTRNAME(3) π
okay bestie, welcome to the TICKIT_PEN_ATTRNAME page from the Library Functions Manual β this is your lil' glow-up guide to pen attributes, and honestly? it's giving reference material in the best way. no cap.
β¨ NAME β¨
tickit_pen_attrname β return the name of a pen attribute. yes, that's literally the whole job and she does it flawlessly π
π SYNOPSIS π
#include <tickit.h>
const char * tickit_pen_attrname(TickitPenAttr attr);
TickitPenAttr tickit_pen_lookup_attr(const char * name);
Link with -ltickit.
πΈ bestie don't forget that -ltickit at link time, she will NOT compile without it and you will be sad.
π¦ DESCRIPTION π¦
tickit_pen_attrname() returns the name of the given pen attribute. these names are the lowercase strings given in tickit_pen(7). so like, hand it an attribute and it hands you back the cute lowercase name, periodt β¨
tickit_pen_lookup_attr() does the glow-up in reverse β you give it a name and it returns the attribute constant for that name. but listen: if the name is not recognised then -1 is returned. so check for that -1 before you go treating it like a real attribute, iykyk π
π RETURN VALUE π
tickit_pen_attrname()returns a constant string pointer. don't go freeing it or mutating it, she's constant for a reason π«Άtickit_pen_lookup_attr()returns an attribute constant, or-1if the name wasn't recognised. that-1is your vibe check failing π
π SEE ALSO π
okay that's the whole page bestie, you ate it up fr fr π₯ this was TICKIT_PEN_ATTRNAME(3) from the Library Functions Manual β mwah, go slay your terminal rendering ππβ¨
π¦ where this page comes from
- ubuntu jammy: libtickit-dev 0.4.1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms