X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=textclient%2Fsrc%2Fcommands.c;fp=textclient%2Fsrc%2Fcommands.c;h=fecdd8c534ef39478c3d998c1c4e390c5eddd5f9;hb=d007cf2d3930d0fda25139efafe4565d8693a08d;hp=4fe088316685f4eaeb22d26bda1542a82ab13253;hpb=1e9d2ef0202aa02d95ba5f15899cdce6434cee48;p=citadel.git diff --git a/textclient/src/commands.c b/textclient/src/commands.c index 4fe088316..fecdd8c53 100644 --- a/textclient/src/commands.c +++ b/textclient/src/commands.c @@ -2,7 +2,7 @@ * This file contains functions which implement parts of the * text-mode user interface. * - * Copyright (c) 1987-2012 by the citadel.org team + * Copyright (c) 1987-2016 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3. @@ -60,7 +60,7 @@ #include "routines2.h" #include "rooms.h" #include "client_chat.h" -////#include "citadel_dirs.h" +#include "help.h" #include "tuiconfig.h" //#ifndef HAVE_SNPRINTF //#include "snprintf.h" @@ -1192,11 +1192,24 @@ void stty_ctdl(int cmd) /* - * display_help() - help file viewer + * display_help() - help text viewer */ void display_help(CtdlIPC *ipc, char *name) { - formout(ipc, name); + int i; + int num_helps = sizeof(helpnames) / sizeof(char *) ; + + for (i=0; i