home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Aktief 1995 #6 / CDA_6.iso / shell / utils / disked29.arj / SOURCE.ZIP / DATA.C < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-19  |  5.4 KB  |  135 lines

  1. /***
  2. *data.c - disked data
  3. *
  4. *Copyright (c) 1994-1995, Gregg Jennings.  All wrongs reserved.
  5. *   P O Box 200, Falmouth, MA 02541-0200
  6. *
  7. *Purpose:
  8. *   Place for major text.
  9. *
  10. *Notice:
  11. *   This progam may be freely used and distributed.  Any distrubution
  12. *   with modifications must retain the above copyright statement and
  13. *   modifications noted.
  14. *   No pulp-publication, in whole or in part, permitted without
  15. *   permission (magazines or books).
  16. ******************************************************************************/
  17.  
  18. /*
  19.    Versions:
  20.  
  21.    1.2   16-Sep-1994    CUG reference
  22.    1.1   04-Sep-1994    '\' and '^F' descriptions
  23. */
  24.  
  25.  
  26.  
  27. /* NO globals referenced here */
  28.  
  29. /* ALL definitions here ARE global */
  30.  
  31.  
  32. #define NULL 0
  33.  
  34. char *com_line_text[] = {
  35. "\nDISKED [-|+hfrst] [/x{file}] [/r{file}] [/f{text}] [/s{B|F|n|file}] [/5] [d:]\n",
  36. "options: - off  + on",
  37. "\t  h home",
  38. "\t  f files",
  39. "\t  r restore",
  40. "\t  s save",
  41. "\t  t translate\n",
  42. "\t  /x{file} initialization file override",
  43. "\t  /r{file} save file override",
  44. "\t  /f{text} find text",
  45. "\t  /s{B|F|n|file} set to BOOT, FAT, sector n, or file",
  46. "\t  /5 screen is 50 lines",
  47. "\t  d: drive",
  48. NULL
  49. };
  50.  
  51. char *signon_text[] = {
  52. "\n                                  DISKED",
  53. "                              The DISK EDitor\n",
  54. "          This program is still being improved and feedback from",
  55. "     users is extremely essential!\n",
  56. "          Anyone sending me their name and address is entitled for",
  57. "     a postscript printed manual, free future versions and support.\n",
  58. "          The source code for this program is available through the",
  59. "     CUG as volume #406B; see the file SOURCE.TXT for more information.\n",
  60. "          NOTE: It is okay to give this program away.\n",
  61. "          ALSO: Please read the documentation that should come with",
  62. "     this program for important copyleft information.  If the",
  63. "     documentation is missing, please write me for a copy.\n",
  64. "          AND: This version LETS YOU WRITE to the disk.  NO WARRANTY",
  65. "     is made, expressed, or implied.\n",
  66. "          THANK YOU      Gregg Jennings",
  67. "                         P O Box 200",
  68. "                         Falmouth  MA  02540-0200\n",
  69.    NULL
  70. };
  71.  
  72.  
  73. char *command_text1[] = {
  74. " Commands:\n",
  75. "        Drive:                  Movement:                 File Buffer: ",
  76. "   'ld' log disk d          'n' next sector           'a' append sector ",
  77. "   '^L' re-log drive        'b' back sector           'u' unappend sector ",
  78. "   'fs' find string s       'h' next head             'A' append cluster  ",
  79. "    BS  display stats       'N' next cluster          'U' unappend cluster",
  80. "                            'B' back cluster        '^An' append n bytes ",
  81. "        Sector Buffer:     '^N' next track          '^Un' unappend n bytes ",
  82. "    'c' change from n      '^B' back track           'gn' get n sectors ",
  83. "   '^C' change dir     'sn,n,n' set position        '^Gn' get n sectors & move ",
  84. "    'k' kill changes       'Sn' set to cluster n     'dn' display from n ",
  85. "    '>' store             '^Sn' set to sector n      'vn' view from n ",
  86. "    '<' retrieve            'r' range                 'e' empty ",
  87. "    'w' write               'H' home                 '^E' empty no ask ",
  88. " SPACE  display top         'E' end                  'ps' put to file s ",
  89. "    CR  display rest       F10s goto file s         '^Ps' put no options",
  90. "   'tn' tag sector         ^END end of file          'is' insert file s ",
  91. "  '1-9' goto tag          ^HOME start of file       '^Is' insert no options",
  92. "                         ^RIGHT next file cluster     'I' insert current file",
  93. "    'q' quit              ^LEFT back file cluster    'Cn' change from n ",
  94. "    '?' more help          '^Q' go back              'Fs' find string s  ",
  95.    NULL
  96. };
  97.  
  98. char *command_text2[] = {
  99. " Extra Commands:\n",
  100. "    'z' set params          'Z' display params        ',' toggle input radix",
  101. "    'Y' restore state      '^Y' save state            '!' shell to DOS",
  102. "    'x' view ini file       '\\' find, ignore case    '^F' find, ignore case",
  103. "    'm' map file            'M' map free space   'Pn,n,s' put sectors to s",
  104. "    F1  directory           F2  list files            F3  number of files",
  105. "    F4s change directory    F5  re-read sector        F6  append w/strip",
  106. "    F7  append w/convert    F8  append w/mask         F9  append w/options",
  107. "   SF1  display partial    SF2  display full         SF3  display ascii",
  108. "   SF4  display directory  SF6  DOS help             '^T' track file",
  109. "SRIGHT  next free clus.  SLEFT  back free clus.  ",
  110.    NULL
  111. };
  112.  
  113. char *dir_help[] = {
  114.    "\n\n\tDirectory Entry:\n",
  115.    "\t00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F",
  116.    "\t|     filename         |  ext   |at| reserved |",
  117.    "\n\t10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F",
  118.    "\t|    reserved    |time |date |start|file size |\n",
  119.    "\tnote: DRDOS uses the reserved area for deleted ",
  120.    "\t      file first char and password info. ",
  121.    NULL
  122. };
  123.  
  124.  
  125. char *debug_h[] = {
  126. "\n\n'h'\tDisplays current memory status:",
  127. "\n\tHeap: near heap size, largest block.",
  128. "\tAlloc/Free calls: huge,far,near/huge,far,near.",
  129. "\tUsed/Free blocks: far/near.",
  130. "\nNote:\tThe number of blocks may differ from the",
  131. "\tnumber of calls due to the C libary's internal",
  132. "\tmemory management which DISKED is unable to track.",
  133. NULL
  134. };
  135.