Artifact ef1b28400c9b3f6823bb1153c68ad1761b522d887dc1468c0e8bb74ffd7c2ea7:
- File
help.h
— part of check-in
[10c900ef1d]
at
2014-05-15 22:16:40
on branch manualheaven
— Needs reference to a definition of NULL now using new Makefile
I'm not sure how it got away with it before? (user: base@atomicules.co.uk size: 1960) [more...]
0000: 2f 2a 0a 20 2a 20 20 50 57 4d 61 6e 20 2d 20 70 /*. * PWMan - p
0010: 61 73 73 77 6f 72 64 20 6d 61 6e 61 67 65 6d 65 assword manageme
0020: 6e 74 20 61 70 70 6c 69 63 61 74 69 6f 6e 0a 20 nt application.
0030: 2a 0a 20 2a 20 20 43 6f 70 79 72 69 67 68 74 20 *. * Copyright
0040: 28 43 29 20 32 30 30 32 20 20 49 76 61 6e 20 4b (C) 2002 Ivan K
0050: 65 6c 6c 79 20 3c 69 76 61 6e 40 69 76 61 6e 6b elly <ivan@ivank
0060: 65 6c 6c 79 2e 6e 65 74 3e 0a 20 2a 0a 20 2a 20 elly.net>. *. *
0070: 20 54 68 69 73 20 70 72 6f 67 72 61 6d 20 69 73 This program is
0080: 20 66 72 65 65 20 73 6f 66 74 77 61 72 65 3b 20 free software;
0090: 79 6f 75 20 63 61 6e 20 72 65 64 69 73 74 72 69 you can redistri
00a0: 62 75 74 65 20 69 74 20 61 6e 64 2f 6f 72 20 6d bute it and/or m
00b0: 6f 64 69 66 79 0a 20 2a 20 20 69 74 20 75 6e 64 odify. * it und
00c0: 65 72 20 74 68 65 20 74 65 72 6d 73 20 6f 66 20 er the terms of
00d0: 74 68 65 20 47 4e 55 20 47 65 6e 65 72 61 6c 20 the GNU General
00e0: 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 20 61 Public License a
00f0: 73 20 70 75 62 6c 69 73 68 65 64 20 62 79 0a 20 s published by.
0100: 2a 20 20 74 68 65 20 46 72 65 65 20 53 6f 66 74 * the Free Soft
0110: 77 61 72 65 20 46 6f 75 6e 64 61 74 69 6f 6e 3b ware Foundation;
0120: 20 65 69 74 68 65 72 20 76 65 72 73 69 6f 6e 20 either version
0130: 32 20 6f 66 20 74 68 65 20 4c 69 63 65 6e 73 65 2 of the License
0140: 2c 20 6f 72 0a 20 2a 20 20 28 61 74 20 79 6f 75 , or. * (at you
0150: 72 20 6f 70 74 69 6f 6e 29 20 61 6e 79 20 6c 61 r option) any la
0160: 74 65 72 20 76 65 72 73 69 6f 6e 2e 0a 20 2a 0a ter version.. *.
0170: 20 2a 20 20 54 68 69 73 20 70 72 6f 67 72 61 6d * This program
0180: 20 69 73 20 64 69 73 74 72 69 62 75 74 65 64 20 is distributed
0190: 69 6e 20 74 68 65 20 68 6f 70 65 20 74 68 61 74 in the hope that
01a0: 20 69 74 20 77 69 6c 6c 20 62 65 20 75 73 65 66 it will be usef
01b0: 75 6c 2c 0a 20 2a 20 20 62 75 74 20 57 49 54 48 ul,. * but WITH
01c0: 4f 55 54 20 41 4e 59 20 57 41 52 52 41 4e 54 59 OUT ANY WARRANTY
01d0: 3b 20 77 69 74 68 6f 75 74 20 65 76 65 6e 20 74 ; without even t
01e0: 68 65 20 69 6d 70 6c 69 65 64 20 77 61 72 72 61 he implied warra
01f0: 6e 74 79 20 6f 66 0a 20 2a 20 20 4d 45 52 43 48 nty of. * MERCH
0200: 41 4e 54 41 42 49 4c 49 54 59 20 6f 72 20 46 49 ANTABILITY or FI
0210: 54 4e 45 53 53 20 46 4f 52 20 41 20 50 41 52 54 TNESS FOR A PART
0220: 49 43 55 4c 41 52 20 50 55 52 50 4f 53 45 2e 20 ICULAR PURPOSE.
0230: 20 53 65 65 20 74 68 65 0a 20 2a 20 20 47 4e 55 See the. * GNU
0240: 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20 General Public
0250: 4c 69 63 65 6e 73 65 20 66 6f 72 20 6d 6f 72 65 License for more
0260: 20 64 65 74 61 69 6c 73 2e 0a 20 2a 0a 20 2a 20 details.. *. *
0270: 20 59 6f 75 20 73 68 6f 75 6c 64 20 68 61 76 65 You should have
0280: 20 72 65 63 65 69 76 65 64 20 61 20 63 6f 70 79 received a copy
0290: 20 6f 66 20 74 68 65 20 47 4e 55 20 47 65 6e 65 of the GNU Gene
02a0: 72 61 6c 20 50 75 62 6c 69 63 20 4c 69 63 65 6e ral Public Licen
02b0: 73 65 0a 20 2a 20 20 61 6c 6f 6e 67 20 77 69 74 se. * along wit
02c0: 68 20 74 68 69 73 20 70 72 6f 67 72 61 6d 3b 20 h this program;
02d0: 69 66 20 6e 6f 74 2c 20 77 72 69 74 65 20 74 6f if not, write to
02e0: 20 74 68 65 20 46 72 65 65 20 53 6f 66 74 77 61 the Free Softwa
02f0: 72 65 0a 20 2a 20 20 46 6f 75 6e 64 61 74 69 6f re. * Foundatio
0300: 6e 2c 20 49 6e 63 2e 2c 20 35 39 20 54 65 6d 70 n, Inc., 59 Temp
0310: 6c 65 20 50 6c 61 63 65 2c 20 53 75 69 74 65 20 le Place, Suite
0320: 33 33 30 2c 20 42 6f 73 74 6f 6e 2c 20 4d 41 20 330, Boston, MA
0330: 20 30 32 31 31 31 2d 31 33 30 37 20 20 55 53 41 02111-1307 USA
0340: 0a 20 2a 2f 0a 0a 23 69 66 6e 64 65 66 20 48 45 . */..#ifndef HE
0350: 4c 50 5f 48 20 0a 23 64 65 66 69 6e 65 20 48 45 LP_H .#define HE
0360: 4c 50 5f 48 0a 0a 23 69 6e 63 6c 75 64 65 20 3c LP_H..#include <
0370: 73 74 64 69 6f 2e 68 3e 0a 0a 73 74 61 74 69 63 stdio.h>..static
0380: 20 63 68 61 72 20 2a 68 65 6c 70 5b 5d 20 3d 20 char *help[] =
0390: 7b 0a 09 22 09 3f 09 09 68 65 6c 70 5c 6e 22 2c {..".?..help\n",
03a0: 0a 09 22 09 71 2f 51 09 09 71 75 69 74 5c 6e 22 ..".q/Q..quit\n"
03b0: 2c 0a 09 22 09 5e 4c 09 09 72 65 66 72 65 73 68 ,..".^L..refresh
03c0: 20 77 69 6e 64 6f 77 73 5c 6e 22 2c 0a 09 22 5c windows\n",.."\
03d0: 6e 22 2c 0a 09 22 09 61 72 72 6f 77 73 20 2f 20 n",..".arrows /
03e0: 6a 2c 6b 09 73 63 72 6f 6c 6c 20 6c 69 73 74 5c j,k.scroll list\
03f0: 6e 22 2c 0a 09 22 09 65 6e 74 65 72 2f 73 70 61 n",..".enter/spa
0400: 63 65 2f 65 09 76 69 65 77 2f 65 64 69 74 20 69 ce/e.view/edit i
0410: 74 65 6d 5c 6e 22 2c 0a 09 22 09 55 09 09 6d 6f tem\n",..".U..mo
0420: 76 65 20 75 70 20 61 20 6c 65 76 65 6c 5c 6e 22 ve up a level\n"
0430: 2c 0a 09 22 5c 6e 22 2c 0a 09 22 09 61 09 09 61 ,.."\n",..".a..a
0440: 64 64 20 69 74 65 6d 5c 6e 22 2c 0a 09 22 09 41 dd item\n",..".A
0450: 09 09 61 64 64 20 73 75 62 6c 69 73 74 5c 6e 22 ..add sublist\n"
0460: 2c 0a 09 22 09 6d 09 09 6d 6f 76 65 20 69 74 65 ,..".m..move ite
0470: 6d 2f 73 75 62 6c 69 73 74 5c 6e 22 2c 0a 09 22 m/sublist\n",.."
0480: 09 4d 09 09 6d 6f 76 65 20 69 74 65 6d 2f 73 75 .M..move item/su
0490: 62 6c 69 73 74 20 75 70 20 6f 6e 65 20 6c 65 76 blist up one lev
04a0: 65 6c 5c 6e 22 2c 0a 09 22 09 5b 09 09 6d 6f 76 el\n",..".[..mov
04b0: 65 20 69 74 65 6d 20 75 70 20 74 68 65 20 6c 69 e item up the li
04c0: 73 74 5c 6e 22 2c 0a 09 22 09 5d 09 09 6d 6f 76 st\n",..".]..mov
04d0: 65 20 69 74 65 6d 20 64 6f 77 6e 20 74 68 65 20 e item down the
04e0: 6c 69 73 74 5c 6e 22 2c 0a 09 22 09 72 09 09 72 list\n",..".r..r
04f0: 65 6e 61 6d 65 20 69 74 65 6d 2f 73 75 62 6c 69 ename item/subli
0500: 73 74 5c 6e 22 2c 0a 09 22 09 64 2f 64 65 6c 09 st\n",..".d/del.
0510: 09 64 65 6c 65 74 65 20 69 74 65 6d 2f 73 75 62 .delete item/sub
0520: 6c 69 73 74 5c 6e 22 2c 0a 09 22 09 4c 09 09 6c list\n",..".L..l
0530: 6f 63 61 74 65 20 69 74 65 6d 2f 73 75 62 6c 69 ocate item/subli
0540: 73 74 20 28 70 72 69 6e 74 73 20 70 61 74 68 29 st (prints path)
0550: 5c 6e 22 2c 0a 09 22 5c 6e 22 2c 0a 09 22 09 66 \n",.."\n",..".f
0560: 09 09 65 6e 61 62 6c 65 20 2f 20 64 69 73 61 62 ..enable / disab
0570: 6c 65 20 66 69 6c 74 65 72 69 6e 67 5c 6e 22 2c le filtering\n",
0580: 0a 09 22 09 2f 09 09 65 6e 61 62 6c 65 20 2f 20 .."./..enable /
0590: 64 69 73 61 62 6c 65 20 73 65 61 72 63 68 69 6e disable searchin
05a0: 67 5c 6e 22 2c 0a 09 22 5c 6e 22 2c 0a 09 22 09 g\n",.."\n",..".
05b0: 6c 09 09 6c 61 75 6e 63 68 20 69 74 65 6d 5c 6e l..launch item\n
05c0: 22 2c 0a 09 22 09 46 6f 72 6d 61 74 3a 09 09 25 ",..".Format:..%
05d0: 75 20 3d 20 75 73 65 72 5c 6e 22 2c 0a 09 22 09 u = user\n",..".
05e0: 09 09 25 68 20 3d 20 68 6f 73 74 5c 6e 22 2c 0a ..%h = host\n",.
05f0: 09 22 09 09 09 25 70 20 3d 20 70 61 73 73 77 6f ."...%p = passwo
0600: 72 64 5c 6e 22 2c 0a 09 22 09 65 2e 67 2e 09 6d rd\n",..".e.g..m
0610: 79 73 71 6c 20 2d 44 6d 79 64 62 20 2d 75 25 75 ysql -Dmydb -u%u
0620: 20 2d 70 25 70 20 2d 68 25 68 5c 6e 22 2c 0a 09 -p%p -h%h\n",..
0630: 22 5c 6e 22 2c 0a 09 22 09 45 64 69 74 6f 72 20 "\n",..".Editor
0640: 48 65 6c 70 5c 6e 22 2c 0a 09 22 09 5b 23 5d 09 Help\n",..".[#].
0650: 09 65 64 69 74 20 66 69 65 6c 64 20 64 65 6e 6f .edit field deno
0660: 74 65 64 20 62 79 20 23 5c 6e 22 2c 0a 09 22 09 ted by #\n",..".
0670: 69 2e 65 2e 09 70 72 65 73 73 20 33 20 74 6f 20 i.e..press 3 to
0680: 65 64 69 74 20 66 69 65 6c 64 20 33 5c 6e 22 2c edit field 3\n",
0690: 0a 09 22 5c 6e 22 2c 0a 09 22 09 4d 69 73 63 20 .."\n",..".Misc
06a0: 48 65 6c 70 5c 6e 22 2c 0a 09 22 09 6f 09 09 65 Help\n",..".o..e
06b0: 64 69 74 20 6f 70 74 69 6f 6e 73 5c 6e 22 2c 0a dit options\n",.
06c0: 09 22 09 5e 57 09 09 77 72 69 74 65 20 64 61 74 .".^W..write dat
06d0: 61 62 61 73 65 20 74 6f 20 66 69 6c 65 20 28 73 abase to file (s
06e0: 61 76 65 29 5c 6e 22 2c 0a 09 22 09 5e 52 09 09 ave)\n",..".^R..
06f0: 72 65 61 64 20 64 61 74 61 62 61 73 65 20 66 72 read database fr
0700: 6f 6d 20 66 69 6c 65 20 28 72 65 6c 6f 61 64 29 om file (reload)
0710: 5c 6e 22 2c 0a 09 22 09 49 09 09 69 6d 70 6f 72 \n",..".I..impor
0720: 74 20 70 61 73 73 77 6f 72 64 20 66 72 6f 6d 20 t password from
0730: 66 69 6c 65 5c 6e 22 2c 0a 09 22 09 45 09 09 65 file\n",..".E..e
0740: 78 70 6f 72 74 20 70 61 73 73 77 6f 72 64 20 74 xport password t
0750: 6f 20 66 69 6c 65 5c 6e 22 2c 0a 09 22 09 5e 47 o file\n",..".^G
0760: 09 09 47 65 6e 65 72 61 74 65 20 70 61 73 73 77 ..Generate passw
0770: 6f 72 64 5c 6e 22 2c 0a 09 22 09 5e 46 09 09 46 ord\n",..".^F..F
0780: 6f 72 67 65 74 20 70 61 73 73 70 68 72 61 73 65 orget passphrase
0790: 5c 6e 22 2c 0a 09 4e 55 4c 4c 0a 7d 3b 0a 0a 23 \n",..NULL.};..#
07a0: 65 6e 64 69 66 0a 0a 0a endif...