X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=73d94bddf2527e8a472c1c86f12cb0517cc7083e;hp=df83cdb0340ba2427724a8c3f936ec61a8104c73;hb=6d60541cbd1b81b23872214ad2d8ea11a54544ac;hpb=2788a4851b551e1a3efb320a2878b809f2d8a9d7 diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index df83cdb..73d94bd 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\n"); printf("search \n"); - printf("show [ []\n"); + printf("show [ [ [\n"); printf("quit\n"); printf("close \n"); @@ -682,6 +686,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab