libwget-console(3)

πŸ’– libwget-console β€” Library Functions Manual πŸ’–

okay bestie, welcome to the console page of libwget β€” this is the part of wget2's library that handles all the pretty stuff on your terminal. yes, the colors. the vibes. the cursor doing what you tell it to. let's go ✨


🌸 NAME 🌸

libwget-console β€” Console functions πŸŽ€


✨ SYNOPSIS ✨

Functions

void wget_console_set_fg_color (WGET_GCC_UNUSED wget_console_color colorid)
void wget_console_reset_fg_color (void)
int wget_console_init (void)
int wget_console_deinit (void)

πŸ¦‹ Detailed Description πŸ¦‹

so like… these are the routines that talk to your console's controls. think cursor positioning, foreground + background colors, and all that other terminal-makeover goodness. it's giving glow-up for your stdout, no cap πŸ’…


πŸ‘‘ Function Documentation πŸ‘‘

πŸ’œ void wget_console_set_fg_color (WGET_GCC_UNUSED wget_console_color colorid)

Parameters

  • colorid β€” Number of foreground/text color to set

Sets the console foreground (text) color. that's it, that's the whole job β€” you hand it a colorid, it makes your text that color. iconic behavior honestly 🌈


πŸŽ€ void wget_console_reset_fg_color (void)

Resets the console foreground (text) color. back to default, back to basics, we love a clean slate ✨


πŸ’– int wget_console_init (void)

Returns

  • 0 on success, or -1 on error

Initializes the console. call this before you start doing console things, bestie β€” you gotta set the stage before the main character walks in 🫢


🌸 int wget_console_deinit (void)

Returns

  • 0 on success, or -1 on error

Deinitializes the console. the graceful exit β€” cleanup era, we stan a tidy shutdown πŸ’…


πŸ’« Author πŸ’«

Generated automatically by Doxygen for wget2 from the source code. (not me writing this by hand, it's Doxygen doing its lil thing, and honestly? it ate πŸ€–βœ¨)


and that's the whole page, babe πŸ₯° this was wget2, Version 2.3.0, of libwget-console(3) β€” go forth and color your terminal like the icon you are πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from