mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
client: exclude unicode characters
This commit is contained in:
parent
cd3d9a26c1
commit
6a06623b0d
@ -68,7 +68,8 @@ void proxy_properties_display(const struct proxy_interface *proxy,
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
display("%s%*s %-*s%-*s\n", margin,
|
display("%s%*s %-*s%-*s\n", margin,
|
||||||
8, properties[i].is_read_write ? " " CHECK : "",
|
8, properties[i].is_read_write ?
|
||||||
|
COLOR_BOLDGRAY " *" COLOR_OFF : "",
|
||||||
name_column_width, properties[i].name,
|
name_column_width, properties[i].name,
|
||||||
value_column_width, properties[i].tostr(data) ? : "");
|
value_column_width, properties[i].tostr(data) ? : "");
|
||||||
}
|
}
|
||||||
|
@ -260,7 +260,8 @@ static void ordered_networks_display(struct l_queue *ordered_networks)
|
|||||||
struct ordered_network *network = entry->data;
|
struct ordered_network *network = entry->data;
|
||||||
|
|
||||||
if (is_first && network_is_connected(network->network_path)) {
|
if (is_first && network_is_connected(network->network_path)) {
|
||||||
display("%s%-*s%-*s%-*s%*d\n", MARGIN, 2, "\u25CB ",
|
display("%s%-*s%-*s%-*s%*d\n", MARGIN,
|
||||||
|
2, COLOR_BOLDGRAY "> " COLOR_OFF,
|
||||||
32, network->name, 10, network->type,
|
32, network->name, 10, network->type,
|
||||||
4, network->signal_strength);
|
4, network->signal_strength);
|
||||||
|
|
||||||
|
@ -28,7 +28,6 @@ struct command_family;
|
|||||||
#define COLOR_GREEN "\x1b[32m"
|
#define COLOR_GREEN "\x1b[32m"
|
||||||
#define COLOR_RED "\x1B[0;91m"
|
#define COLOR_RED "\x1B[0;91m"
|
||||||
#define COLOR_OFF "\x1B[0m"
|
#define COLOR_OFF "\x1B[0m"
|
||||||
#define CHECK "\u2714"
|
|
||||||
#define CLEAR_SCREEN "\033[2J"
|
#define CLEAR_SCREEN "\033[2J"
|
||||||
#define MARGIN " "
|
#define MARGIN " "
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user