wifi_strength_bars


Description:


public unowned string wifi_strength_bars (uint8 strength)

Converts strength into a 4-character-wide graphical representation of strength suitable for printing to stdout.

Previous versions used to take a guess at the terminal type and possibly return a wide UTF-8 encoded string. Now it always returns a 7-bit clean strings of one to 0 to 4 asterisks. Users that actually need the functionality are encouraged to make their implementations instead.

Parameters:

strength

the access point strength, from 0 to 100

Returns:

the graphical representation of the access point strength


Namespace: NM.Utils
Package: libnm



2022 vala-language.org