adime_scanc..._pretty_name(3)
β¨ NAME β¨
adime_scancode_to_pretty_name β the glow-up function that turns your scancodes into something a human can actually read π
So real quick, bestie: this page lives in section 3 of the manual, and yeah, the header up top is a lil abbreviated (adime_scanc..._pretty_name(3)) because manpage headers are dramatic like that, but the full name is right here and it's gorgeous. It's part of the Adime API Reference. π¦
πΈ SYNOPSIS πΈ
#include <adime.h>
char *adime_scancode_to_pretty_name(int scancode, char *buf)
Okay so you pass in a scancode and a buf, and it hands you back a char *. That's the whole vibe check. β¨
π DESCRIPTION π
Okay so here's the tea. The result you get from adime_scancode_to_short_name() is sometimes an abbreviation, and it may contain underscores. Which like β fine for code, lowkey cursed for a user to look at. π
So if you're about to display that result to an actual human being, you may want to use this function instead, because it returns more user-friendly strings. That's it. That's the whole point. It's giving β¨presentationβ¨.
Not me hyping a function that just makes names prettier, but honestly? The way that underscores are just not it for UI text? She ate. π
π«Ά SEE ALSO π«Ά
okay that's the whole page bestie, go forth and make your strings pretty πβ¨ππ¦πΈ
this little legend comes to you from Adime, version 2.2.1 β ily, thanks for reading, mwah π
π¦ where this page comes from
- fedora 43: adime-devel 2.2.1-42.fc43 Β· zlib
- fedora 43: adime-devel 2.2.1-42.fc43 Β· zlib
- fedora 44: adime-devel 2.2.1-44.fc44 Β· zlib
- fedora 44: adime-devel 2.2.1-44.fc44 Β· zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms