home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume2 / window / part2 / help.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-11-30  |  2.1 KB  |  52 lines

  1. /*
  2.  *************
  3.  * DISTRIBUTION NOTICE  July 30 1985
  4.  * A Revised Edition of WM, by Matt Lennon and Tom Truscott,
  5.  *        Research Triangle Institute, (919) 541-7005.
  6.  * Based on the original by Robert Jacob (decvax!nrl-css!jacob),
  7.  *        Naval Research Laboratory, (202) 767-3365.
  8.  * No claims or warranties of any sort are made for this distribution.
  9.  * General permission is granted to copy, but not for profit,
  10.  * any of this distribution, provided that this notice
  11.  * is always included in the copies.
  12.  *************
  13.  */
  14. #include "wm.h"
  15.  
  16.  
  17. /*
  18.  * print a command summary over the top of the screen, then redraw
  19.  */
  20. helpmsg()
  21. {
  22. printf("Code    Command  Description\r\n");
  23. printf("----    -------  -----------\r\n");
  24. printf("%d..%d    change    Change to the named window\r\n",
  25.     MINWINDOW, MAXWINDOWS-1);
  26. printf("d       dump      dump current window contents to a file\r\n");
  27. printf("h or ?  help      print this help message\r\n");
  28. printf("i       identify  identify windows\r\n");
  29. printf("k       kill      kill a window permanently\r\n");
  30. printf("l       last      change to last-used window\r\n");
  31. printf("m       move      move and/or change size of current window\r\n");
  32. printf("n       new       make a new window\r\n");
  33. printf("p       prefix    change WM prefix character (See EXECUTE below)\r\n");
  34. printf("q       quit      quit WM\r\n");
  35. printf("r       redraw    redraw entire screen\r\n");
  36. printf("s       save      save current window configuration\r\n");
  37. printf("t       termcap   reset $TERM and $TERMCAP of current window\r\n");
  38. printf("z       suspend   suspend WM (or spawn non-window subshell)\r\n");
  39.  
  40. printf("----------------------------------------------------------\r\n");
  41.  
  42. printf("To EXECUTE a command, type the WM prefix character (%s) then the command code.\r\n", mkprint(prefix));
  43. printf("To ENTER the prefix character itself, type it twice.\r\n");
  44. printf("To CANCEL a WM command before it executes, type <ESC> or <DEL>.\r\n");
  45. printf("For FUTHER INFORMATION, consult the 'wm' manual entry.\r\n");
  46.  
  47. printf("------------------------------\r\n");
  48.  
  49. printf("Now hit any key to return to WM");
  50. (void)fflush(stdout);
  51. }
  52.