X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=01c8e1aaefd511e13797bda5b5afb5574d9c77bc;hp=363b1e0423c4948dc8e44d67242f7c7c747fc17f;hb=5207f60678397943900b4e5f41d563335bf745d1;hpb=379504a233e3e2cc85bca1e7b6d864f1395aec7c diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index 363b1e0..01c8e1a 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -12,8 +12,6 @@ #include #include -#include - #if HAVE_READLINE_READLINE_H #include #endif @@ -21,10 +19,7 @@ #include #endif -#include - #include -#include #include #define MAX_CON 100 @@ -173,7 +168,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); - if (next_token_copy(args, count_str, sizeof(count_str)) >= 0) - ZOOM_options_set(options, "count", count_str); + if (next_token_copy(args, count_str, sizeof(count_str)) <= 0) + strcpy(count_str, "1"); + 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");