From 9022f0446ec957ea7789e1e1c135d687d4d36b6b Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 2 Sep 2010 17:09:22 -0400 Subject: [PATCH] The new paginator now makes use of the server-supplied prompt. --- citadel/textclient/citadel.c | 5 +++-- citadel/textclient/screen.c | 29 ++++++++++++++--------------- 2 files changed, 17 insertions(+), 17 deletions(-) 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