projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96b5ecd
)
noping: Print host name in bold.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 8 Jun 2010 16:04:11 +0000
(18:04 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Tue, 8 Jun 2010 16:04:11 +0000
(18:04 +0200)
src/oping.c
patch
|
blob
|
history
diff --git
a/src/oping.c
b/src/oping.c
index
e0c0627
..
3934b4a
100644
(file)
--- a/
src/oping.c
+++ b/
src/oping.c
@@
-365,9
+365,11
@@
static int context_window_repaint (ping_context_t *ctx, /* {{{ */
}
box (ctx->window, 0, 0);
+ wattron (ctx->window, A_BOLD);
mvwprintw (ctx->window, /* y = */ 0, /* x = */ 5,
- " %s ping statistics ",
- ctx->host);
+ " %s ", ctx->host);
+ wattroff (ctx->window, A_BOLD);
+ wprintw (ctx->window, "ping statistics ");
mvwprintw (ctx->window, /* y = */ 1, /* x = */ 2,
"%i packets transmitted, %i received, %.2f%% packet "
"loss, time %.1fms",