client: exclude unicode characters

This commit is contained in:
Tim Kourt 2017-04-28 10:35:45 -07:00 committed by Denis Kenzior
parent cd3d9a26c1
commit 6a06623b0d
3 changed files with 4 additions and 3 deletions

View File

@ -68,7 +68,8 @@ void proxy_properties_display(const struct proxy_interface *proxy,
continue;
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,
value_column_width, properties[i].tostr(data) ? : "");
}

View File

@ -260,7 +260,8 @@ static void ordered_networks_display(struct l_queue *ordered_networks)
struct ordered_network *network = entry->data;
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,
4, network->signal_strength);

View File

@ -28,7 +28,6 @@ struct command_family;
#define COLOR_GREEN "\x1b[32m"
#define COLOR_RED "\x1B[0;91m"
#define COLOR_OFF "\x1B[0m"
#define CHECK "\u2714"
#define CLEAR_SCREEN "\033[2J"
#define MARGIN " "