projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
faa01e5
)
better wrapping: add a cursor and respect inner borders
author
Antoine Beaupré
<anarcat@koumbit.org>
Tue, 3 Dec 2013 04:15:13 +0000
(23:15 -0500)
committer
Antoine Beaupré
<anarcat@koumbit.org>
Tue, 3 Dec 2013 04:15:13 +0000
(23:15 -0500)
src/oping.c
patch
|
blob
|
history
diff --git
a/src/oping.c
b/src/oping.c
index
ccaafe0
..
0649d00
100644
(file)
--- a/
src/oping.c
+++ b/
src/oping.c
@@
-686,9
+686,10
@@
static int update_stats_from_context (ping_context_t *ctx, pingobj_iter_t *iter)
wattron (ctx->window, COLOR_PAIR(color));
mvwprintw (ctx->window,
/* y = */ 3,
wattron (ctx->window, COLOR_PAIR(color));
mvwprintw (ctx->window,
/* y = */ 3,
- /* x = */ (
1 + sequence) % maxx
,
+ /* x = */ (
(sequence - 1) % (maxx - 4) ) + 2
,
bars[index]);
wattroff (ctx->window, COLOR_PAIR(color));
bars[index]);
wattroff (ctx->window, COLOR_PAIR(color));
+ wprintw (ctx->window, " ");
}
else
{
}
else
{
@@
-698,9
+699,10
@@
static int update_stats_from_context (ping_context_t *ctx, pingobj_iter_t *iter)
wattron (ctx->window, COLOR_PAIR(OPING_RED) | A_BOLD);
mvwprintw (ctx->window,
/* y = */ 3,
wattron (ctx->window, COLOR_PAIR(OPING_RED) | A_BOLD);
mvwprintw (ctx->window,
/* y = */ 3,
- /* x = */ (
1 + sequence) % maxx
,
+ /* x = */ (
(sequence - 1) % (maxx - 4) ) + 2
,
"!");
wattroff (ctx->window, COLOR_PAIR(OPING_RED) | A_BOLD);
"!");
wattroff (ctx->window, COLOR_PAIR(OPING_RED) | A_BOLD);
+ wprintw (ctx->window, " ");
}
wrefresh (ctx->window);
}
wrefresh (ctx->window);