home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / simtel / sigm / vols000 / vol076 / ed.doc < prev    next >
Encoding:
Text File  |  1984-04-29  |  3.7 KB  |  95 lines

  1.  
  2.      DOCUMENTATION FOR "C" EDITOR - JULY 20, 1982
  3.         (CP/M - H19 - H89 VERSION)
  4.         (Written by Edward K. Ream)
  5.        (Dr. Dobb's Journal, Jan. 1982, v. 7 Issue 1)
  6.            (Modified by Alan D. Howard)
  7.  
  8. COMMAND MODE COMMANDS:    (May be entered in upper or lower case)
  9.  
  10. Command     Arguments    Function
  11.  
  12. append        <filename>    Insert the named file into buffer at cursor
  13. change        <from to>    Make indicted changes in
  14.                     lines in range <from to>
  15. clear                Erase the buffer
  16. closeread            Close the read file
  17. closewrite            Close the write file
  18. copy        <from to n>    Copy <n> lines from <from> to before <to>
  19. delete        <from to>    Delete all lines in the range <from to>
  20. delname     <filename>    Make the indicated file the write file;
  21.                     no error if file already exists
  22. dos                Exit from editor to operating system
  23. extract     <from to>    Open a file (name is requested);
  24.                     write the indicated lines to file;
  25.                     close the file;
  26. find                Search for a pattern; enter edit mode
  27. g        <n>        Go to line <n> and enter edit mode
  28. list        <from to>    List the indicated lines to printer
  29. load        <filename>    Open the indicated file as the read file;
  30.                     clear the buffer;
  31.                     load the buffer from the file;
  32.                     close the read file if entire file read
  33. move        <from to n>    Move <n> lines from <from> to before <to>
  34. name        <filename>    Make the indicated file the write file;
  35.                     error if file already exists
  36. open        <filename>    Open the indicated file as the read file
  37. read        <n>        Read <n> lines from read file to end of
  38.                     buffer; close the read file if
  39.                     entire file read;
  40. rename        <filename>    Close the write file; open new write file
  41. rest                Clear the buffer if requested;
  42.                     load the buffer from the read file;
  43.                     close the read file if entire file read
  44. save                Save the buffer into the write file;
  45.                     buffer is unchanged;
  46. search        <from to>    Print all lines that match a pattern
  47. tabs        <n>        Set tab stops at every <n> columns
  48. write        <n>        Write <n> lines from front of buffer to the
  49.                     write file; the lines are deleted from
  50.                     the buffer
  51. (blue key)            Enter edit mode
  52. (IC key)            Enter insert mode
  53.  
  54.  
  55. EDIT AND INSERT MODE KEY COMMANDS: (Commands marked # not valid in insert
  56.                     mode;  Commands marked % force edit mode)
  57.  
  58. Key        Action
  59.  
  60. (f1)         #    Scroll down until any key pressed
  61. (f2)         #    Move to end of line
  62. (f3)<n> CR   #    Go to line <n>
  63. (f4)         #    Move to beginning of line
  64. (f5)         #    Scroll up until any key pressed
  65. (ERASE)      #    Erase from cursor to end of line
  66. (Blue)        Enter edit mode
  67. (Red)        Abort changes to current line
  68. (White)     Enter command mode
  69. (BACKSPACE)    Delete character before cursor
  70. (DELETE)    Delete character at cursor; same as (BACKSPACE) at end of line
  71. (RETURN)    Insert mode:  Add line below current line, move to the new line
  72.         Edit mode:  Move to next line
  73. (LINE FEED)    Insert line at cursor: move current line down, enter insert mode
  74. (IC)        Enter insert mode
  75. (DC)        Delete character at cursor; same as (Backspace) at end of line
  76. (IL)        Insert line at cursor: move current line down, enter insert mode
  77. (DL)        Delete current line
  78. (0)<char>    #    (Zero on auxiliary keypad); Search for character and move cursor
  79.             to character
  80. (.)<char>    #    (Period on auxiliary keypad); Delete characters from cursor
  81.             up to but not including <char>
  82. (ENTER)     Enter command mode
  83. (HOME)         #    Move cursor alternately to top and bottom of screen
  84. (^S)        (Control-S) Split line at cursor.
  85. (^P)        (Control-P) Join current line with line above (if room)
  86. (ESC ESC)    Enter command mode
  87. (Up-arrow)   %    Up one line
  88. (Down-arrow) %    Down one line
  89. (Left-arrow)    Left one character
  90. (Right-arrow)    Right one character
  91.  
  92. (All others)    Any other printing key (and TAB key) act as follows:
  93.             Edit mode:    Replace cursor with character
  94.             Insert mode:    Insert character
  95.