X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=a6da27d7c66d5e8601cc7c91ae7c8781ca9cab14;hp=363b1e0423c4948dc8e44d67242f7c7c747fc17f;hb=30b68ac32ab0516934cee67a076b53b0cb85c6d9;hpb=6985b22c1da4a0c4d4182a6b0570df490a913403 diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 363b1e0..a6da27d 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -173,7 +173,7 @@ static void cmd_close(ZOOM_connection *c, ZOOM_resultset *r, static void display_records(ZOOM_connection c, ZOOM_resultset r, - int start, int count) + int start, int count, const char *type) { int i; for (i = 0; i= 0) ZOOM_options_set(options, "start", start_str); @@ -237,6 +238,9 @@ static void cmd_show(ZOOM_connection *c, ZOOM_resultset *r, if (next_token_copy(args, count_str, sizeof(count_str)) >= 0) ZOOM_options_set(options, "count", count_str); + if (next_token_copy(args, render_str, sizeof(render_str)) >= 0) + type = render_str; + for (i = 0; i