summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c286d66)
raw | patch | inline | side by side (parent: c286d66)
author | Antoine Beaupré <anarcat@koumbit.org> | |
Fri, 6 Dec 2013 05:07:09 +0000 (00:07 -0500) | ||
committer | Antoine Beaupré <anarcat@koumbit.org> | |
Fri, 6 Dec 2013 05:07:09 +0000 (00:07 -0500) |
this will ease transition to a commandline option override
src/oping.c | patch | blob | history |
diff --git a/src/oping.c b/src/oping.c
index 0cb084f18ec3634ddc97e9a23798d933c03f9c10..aa99ef9d87a7d7ac1cf9673518166004c8db05fa 100644 (file)
--- a/src/oping.c
+++ b/src/oping.c
} /* }}} void time_calc */
#if USE_NCURSES
+static int unicode_locale() /* {{{ */
+{
+ return _nc_unicode_locale();
+} /* }}} int unicode_locale */
+
static int update_prettyping_graph (ping_context_t *ctx, /* {{{ */
double latency, unsigned int sequence)
{
x_max = getmaxx (ctx->window);
x_pos = ((sequence - 1) % (x_max - 4)) + 2;
- if (_nc_unicode_locale())
+ if (unicode_locale())
{
hist_symbols_num = hist_symbols_utf8_num;
}
assert (index_colors < hist_colors_num);
index_symbols = intensity % hist_symbols_num;
- if (_nc_unicode_locale())
+ if (unicode_locale())
{
color = hist_colors_utf8[index_colors];
symbol = hist_symbols_utf8[index_symbols];
wattron (ctx->window, A_BOLD);
wattron (ctx->window, COLOR_PAIR(color));
- if (_nc_unicode_locale())
+ if (unicode_locale())
{
mvwprintw (ctx->window,
/* y = */ 3,