source: help.c @ 1aee7d9

barnowl_perlaimdebianowlrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 1aee7d9 was 1aee7d9, checked in by Erik Nygren <nygren@mit.edu>, 22 years ago
* Added RCS Id strings to all files. * 'show keymaps' shows details of all keymaps after summary list.
  • Property mode set to 100644
File size: 4.6 KB
Line 
1#include "owl.h"
2#include <string.h>
3
4static const char fileIdent[] = "$Id$";
5
6void owl_help() {
7  owl_fmtext fm;
8  char *varname;
9  owl_list varnames;
10  int i, numvarnames;
11
12  owl_fmtext_init_null(&fm);
13  owl_fmtext_append_bold
14     (&fm, 
15      "OWL HELP\n\n");
16
17  owl_fmtext_append_normal
18     (&fm, 
19      "  For help on a specific command use 'help <command>'\n"
20      "  For information on advanced keys, do 'M-x show keymaps'.\n"
21      "  For information on advanced commands, do 'M-x show commands'.\n"
22      "  For information on variables, do 'M-x show variables'.\n\n");
23
24  owl_fmtext_append_bold
25     (&fm, 
26      "  Basic Keys:\n"
27      );
28  owl_fmtext_append_normal
29     (&fm, 
30      "    n             Move to next non-deleted message\n"
31      "    p             Move to previous non-deleted message\n"
32      "    C-n , down    Move to next message\n"
33      "    C-p , up      Move to previous message\n"
34      "    < , >         Move to first, last message\n"
35      "    right , left  Scroll screen left or right\n"
36      "    C-v           Page down\n"
37      "    M-v           Page up\n"
38      "    i             Print more information about a message\n"
39      "    P             Move to the next personal message\n"
40      "    M-P           Move to the preivous personal message\n"
41      "\n"
42      "    d             Mark message for deletion\n"
43      "    u             Undelete a message marked for deletion\n"
44      "    x             Expunge deleted messages\n"
45      "    X             Expunge deleted messages and switch view\n"
46      "    T             Mark all 'trash' messages for deletion\n"
47      "\n"
48      "    z             Start a zwrite command\n"
49      "    r             Reply to the current message\n"
50      "    R             Reply to sender\n"
51      "    C-r           Reply but allow editing of reply line\n"
52      "\n"
53      "    M-n           View zephyrs to selected conversation\n"
54      "    v             Start a view command\n"
55      "\n"
56      "    A             Toggle zaway\n"
57      "    w             Open a URL in the message in netscape\n"
58      "    C-l           Refresh the screen\n"
59      "    C-z           Suspend\n"
60      "    h             Print this help message\n"
61      "    : , M-x       Enter one of the commands below\n"
62      "\n\n"
63      );
64  owl_fmtext_append_bold
65     (&fm, 
66      "  Basic Commands:\n"
67      );
68  owl_fmtext_append_normal
69     (&fm, 
70      "    quit, exit    Exit owl\n"
71      "    help          Get help about commands\n"
72      "    show          Show information about owl (see detailed help)\n"
73      "\n"
74      "    zwrite        Send a zephyr\n"
75      "    reply         Reply to the current zephyr\n"
76      "\n"
77      "    zlog          Send a login or login notification\n"
78      "    subscribe     Subscribe to a zephyr class or instance\n"
79      "    unsubscribe   Unsubscribe to a zephyr class or instance\n"
80      "    unsuball      Unsubscribe from all zephyr classes\n"
81      "    getsubs       Print a list of current subscriptions\n"
82      "    zlocate       Locate a user\n"
83      "    info          Print detailed information about the current message\n"
84      "    filter        Create a message filter\n"
85      "    view          View messages matching a filter\n"
86      "    viewuser      View messages to or from a particular user\n"
87      "    viewclass     View messages to a particular class\n"
88      "    expunge       Expunge messages marked for deletion\n"
89      "    first         Move to the first message\n"
90      "    last          Move to the last message\n"
91      "    zaway         Turn zaway on or off, or set the message\n"
92      "    load-subs     Load zephyr subscriptions from a file\n"
93      "\n"
94      "    set           Set a variable (see list below)\n"
95      "    print         Print a variable's value (variables listed below)\n"
96      "\n"
97      "    about         Print information about owl\n"
98      "    status        Print status information about the running owl\n"
99      "    version       Print the version number of owl\n"
100      "\n");
101 
102  /* help for variables */
103  owl_fmtext_append_bold(&fm, 
104      "Variables:\n");
105  owl_variable_dict_get_names(owl_global_get_vardict(&g), &varnames);
106  owl_variable_get_summaryheader(&fm);
107  numvarnames = owl_list_get_size(&varnames);
108  for (i=0; i<numvarnames; i++) {
109    varname = owl_list_get_element(&varnames, i);
110    if (varname && varname[0]!='_') {
111      owl_variable_get_summary(owl_global_get_vardict(&g), varname, &fm);
112    }
113  }
114  owl_variable_dict_namelist_free(&varnames);
115
116  owl_fmtext_append_normal(&fm, "\n");
117
118  owl_function_popless_fmtext(&fm);
119
120  owl_fmtext_free(&fm);
121}
122
Note: See TracBrowser for help on using the repository browser.