From: Wilfried Goesgens Date: Thu, 2 Sep 2010 21:33:34 +0000 (+0200) Subject: Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel X-Git-Tag: v8.01~765 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=7b4e3f415c9d2213fd7c530e5c123ab8a0dba2ab;hp=6714f22783d3c60dc20c5d8bbf7499e0cb01ef08;p=citadel.git Merge branch 'master' of ssh://git.citadel.org/appl/gitroot/citadel --- diff --git a/citadel/textclient/citadel.c b/citadel/textclient/citadel.c index 9cd482eea..8d730855e 100644 --- a/citadel/textclient/citadel.c +++ b/citadel/textclient/citadel.c @@ -75,8 +75,8 @@ #define IFNAIDE if (axlevelServInfo.moreprompt; /* be nice and identify ourself to the server */ CtdlIPCIdentifySoftware(ipc, SERVER_TYPE, 0, REV_LEVEL, diff --git a/citadel/textclient/screen.c b/citadel/textclient/screen.c index 8229c63d3..1e0abb028 100644 --- a/citadel/textclient/screen.c +++ b/citadel/textclient/screen.c @@ -22,6 +22,9 @@ char arg_screen; +/* the default paginator prompt will be replaced by the server's prompt when we learn it */ +char *moreprompt = " -- more -- "; + extern int screenheight; extern int screenwidth; int lines_printed = 0; @@ -99,29 +102,25 @@ int scr_getc(int delay) * Issue the paginator prompt (more / hit any key to continue) */ void hit_any_key(void) { - int b; + int a, b; color(COLOR_PUSH); color(DIM_RED); - /* scr_printf("%s\r", ipc->ServInfo.moreprompt); */ - scr_printf("<>\r"); // FIXME use the prompt given by the server + scr_printf("%s\r", moreprompt); color(COLOR_POP); - stty_ctdl(0); b=inkey(); - /* - for (a=0; !IsEmptyStr(&ipc->ServInfo.moreprompt[a]); ++a) + for (a=0; a