---
name: "libwget-console"
section: "3"
platform: "linux"
package: "wget2-dev"
version: "2.2.0+ds-1+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/libwget-console"
---

# libwget-console(3)

Console functions

## 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

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

## 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.

### void wget\_console\_reset\_fg\_color (void)

Resets the console foreground (text) color.

### int wget\_console\_init (void)

**Returns**

0 on success, or -1 on error

Initializes the console.

### int wget\_console\_deinit (void)

**Returns**

0 on success, or -1 on error

Deinitializes the console.

## Author

Generated automatically by Doxygen for wget2 from the source code.
