wget2  2.0.0
Console functions

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

Routines to address console controls like cursor positioning, fg+bg colors, ...

Function Documentation

◆ wget_console_set_fg_color()

void wget_console_set_fg_color ( WGET_GCC_UNUSED wget_console_color  colorid)
Parameters
[in]coloridNumber of foreground/text color to set

Sets the console foreground (text) color.

◆ wget_console_reset_fg_color()

void wget_console_reset_fg_color ( void  )

Resets the console foreground (text) color.

◆ wget_console_init()

int wget_console_init ( void  )
Returns
0 on success, or -1 on error

Initializes the console.

◆ wget_console_deinit()

int wget_console_deinit ( void  )
Returns
0 on success, or -1 on error

Deinitializes the console.