adime_scanc..._pretty_name(3)

πŸ“¦ version 2.2.1, in fedora 43, fedora 44

✨ 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