sacc

sacc (saccomys): simple gopher client.
Log | Files | Refs | LICENSE

commit f774b7e9a296259d812a8de8066e777877e67061
parent bac69ffc9bd7be308a7c5817904b9228095500cf
Author: Quentin Rameau <quinq@fifth.space>
Date:   Fri, 23 Jun 2017 01:18:24 +0200

Arrange caption format

Diffstat:
sacc.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/sacc.c b/sacc.c @@ -181,8 +181,11 @@ display(Item *item) ndigits = (nitems < 10) ? 1 : (nitems < 100) ? 2 : 3; for (i = item->printoff; i < nitems && i < lines; ++i) { - printf("[%*d]%.4s: %s\n", ndigits, i+1, - typedisplay(items[i]->type), items[i]->username); + item = items[i]; + printf("%*d %-4s%c %s\n", ndigits, i+1, + item->type != 'i' ? typedisplay(item->type) : "", + item->type > '1' ? '|' : '+', + items[i]->username); } break; }