source: help.c @ 7d4fbcd

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