home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 331_01 / keys.doc < prev    next >
Text File  |  1990-06-14  |  23KB  |  463 lines

  1. .ce
  2.                            SE - Stack Editor
  3.  
  4.  
  5. .nf
  6. .ce
  7.                          Summary of key usage
  8.  
  9.  
  10. ^A                 word left
  11. ^B                 reserved for unimplemented block marking operations
  12. ^C or PgDn         window down one page
  13. ^D or <left arrow> cursor left one character
  14. ^E or <up arrow>   cursor up one line
  15. ^F                 cursor right one word
  16. ^G or <Del>        delete character under cursor
  17. ^H or <Backspace>  delete character to left of cursor
  18. ^I or <Tab>        tab right
  19. ^J                 jump to line n or mark current line for next jump
  20. ^K                 block manipulations
  21.                        B   block moves
  22.                        Q   quit
  23.                            w=write file
  24.                            a=abandon edited file  (also F9)
  25.                        X   write file and exit to system (also F10)
  26.                        R   read and insert disc file
  27. ^L, F3, F4         repeat last find/alter
  28. ^N                 line break (<ret> is preferred)
  29. ^O                 pop a copy of last deleted line.
  30. ^P                 pop last deleted line
  31. ^Q                 'quick' options
  32.                        A    find and replace  (see also F6)
  33.                        F    find              (see also F6)
  34.                        K    editing context (tabs, files, etc.)
  35.                        P    reform paragraphs per dot commands
  36. ^R or <PgUp>       window up one page
  37. ^S or <left arrow> cursor left one character
  38. ^T                 delete word
  39. ^U or ^<left arrow>   cursor full left
  40.                       (moves window left if already full left)
  41. ^V or <ins>        character insert/overlay toggle (transitory)
  42. ^W                 window up one line
  43. ^X or <dn arrow>   cursor down one line
  44. ^Y                 delete from cursor to end of line (delete line if full left)
  45. ^Z                 window down one line
  46. ^[                 same as escape key
  47. ^-                 undo the last 100 changes on a line-by-line basis. (+, not
  48.                    ctrl+, becomes redo in this mode)
  49.  
  50. <home>             window to beginning of file
  51. <end>              window to end of file
  52. ^] or ^<right arrow>  cursor full right.  (moves window right if already
  53.                       full right)
  54. <esc>              cancel or abort command, nothing if no partial command.
  55.  
  56.  
  57. F1    help menu  (toggles)
  58. F2    Initiate string search or search and replace
  59. F3    repeat last search or search & replace backward (same as forward ^L)
  60. F4    repeat last search or search & replace forward (same as backward ^L)
  61. F5    unused
  62. F6    Center window on cursor  (horizontally and vertically)
  63. F7    option selection
  64. F8    directory display
  65. F9    exit without saving (same as ^KQ)
  66. F10   save the current file and exit (same as ^KX)
  67.  
  68.  
  69. .fi
  70. .rm 80
  71.  
  72.  
  73. The use of the carriage return is a little different than Wordstar.  First, it
  74. operates the same in the character insert and character overlay mode.  It is
  75. used to break lines into two lines. ^N will also do that, but ^N will eventually
  76. be used to push/delete the remainder of sentences spanning more than one line,
  77. so <ret> is the prime key for breaking lines.
  78.  
  79. When a line is broken the cursor normally ends up on the lower line, which is
  80. the latter portion of the original line.  An exception occurs when the cursor is
  81. initially in column 1, in which case it stays on the new blank line created by
  82. the line break, in preparation for the entry of new text.
  83.  
  84. ^Y deletes from the cursor to the end of the line rather than the entire line.
  85. Use ^U first (as needed) to move the cursor full left to delete the entire line.
  86.  
  87. Characters are inserted into the existing text in the default mode.  The <ins>
  88. and ^V keys are used to enter the overlay mode, where the character under
  89. the cursor is replaced by the new character.  The overlay mode is usually
  90. used for editing tables with a rigid format.  The simplest way to change
  91. one or two characters in existing text is to insert the new characters
  92. then delete the old, rather than entering the overlay mode first.  The
  93. word OVER appears in the header when in the character replace mode, and
  94. the mode is transitory.  Any cursor positioning command which moves the
  95. cursor more than 10 lines in a single step causes reversion to the insert
  96. mode.
  97.  
  98. Lines are concatenated by deleting any character to the right of the rightmost
  99. visible character with ^G or <del>.  That is the only way of concatenating
  100. lines.  The program has free cursor movement, so the right arrow and ^] can be
  101. used to move the cursor beyond the visible end of the line.  Line concatenation
  102. works the same way there, except the point of concatenation is the cursor
  103. position rather than the last visible character.  If the last character of the
  104. line is on the screen then the ^] command will move the cursor to just beyond
  105. it.
  106.  
  107. The ^O (pop a copy) and ^P (pop) stack operations pop the lines pushed with ^Y.
  108. The cursor must be in column 1 for a push to occur.  The stack will hold 100
  109. lines.  This version contains a preliminary version of the stack operations and
  110. there are some restrictions, which are given in the read.me file.  The functions
  111. will be refined and expanded in a future release.
  112.  
  113. The default file extensions are .c and .doc.  The extension for the input file
  114. need not be specified if it is one of these.
  115.  
  116. The <esc> key will cancel all prompted ^K and ^Q queries.  It will also abort a
  117. string search or search and replace operation.  It can also be used to
  118. exit the help mode.  The escape key has no effect if there is nothing
  119. to abort.
  120.  
  121. The program will rarely automatically scroll horizontally with the default
  122. options.  That is sometimes an inconvenience when editing documents with short
  123. lines, but is essential when editing material with lines mostly longer than 80
  124. columns.  Use ^] and ^U repetitively to move the cursor horizontally in large
  125. chunks.  F6 is often more convenient.
  126.  
  127. The program takes 0x0D as the input file end of line marker.  The 0x0A is
  128. ignored, although normally there.  The output file is always the standard 0D 0A.
  129.  
  130. There is a DOS ambiguity in the way the end of file character appears in the
  131. file.  The trailing characters in the last line can be either "text" 0D 0A 1A or
  132. "text 1A".  Most programs don't care which way it is, but the selection is
  133. controllable.  If the <end> key carries the cursor to a line containing visible
  134. characters then that line is terminated by ^Z but not by a carriage return and
  135. line feed.  The selection is controllable by the normal editing commands.
  136.  
  137. The primary file is never altered by the program.  A copy is first produced,
  138. then the primary file is renamed to the .bak extension and the copy renamed to
  139. the original name.
  140.  
  141. When using a fixed disc system it is usually preferable to exit after saving the
  142. text file.  With floppies the process of reloading the program can be tedious
  143. enough that an easy way of saving or abandoning a file and staying resident is
  144. better.  The commands are optimized for a fixed disc system, but it is possible
  145. to stay resident.  If a file is to be abandoned, type in a garbage character
  146. before entering F9 or ^KQ.  The ensuing prompted inputs will allow you to
  147. discard the text in memory and stay resident.  Similarly, also enter F9 or ^KQ,
  148. which are normally used to abandon a file, when you really want to save it and
  149. stay resident.  The program will not exit on one keystroke if changes have been
  150. made to the file.  It will otherwise.
  151.  
  152. The program line limit in large systems is 16384 lines.  In smaller systems the
  153. maximum number of lines is roughly the number of bytes of allocatable memory
  154. divided by 4.  The lines of text are kept in a temporary disc file when they
  155. can't be stored in RAM, but each line on disc still requires 4 bytes in RAM.  Up
  156. to 500 kb of RAM will be used for text storage if available, with a 5-10 percent
  157. overhead for line pointers.
  158.  
  159. A second limit is the virtual memory size limitation of 1500 2048-byte pages, or
  160. 3 megabytes.  The pages are kept preferentially in RAM, with the most recently
  161. accessed pages being there to minimize access time.
  162.  
  163. The virtual memory management system has been improved somewhat over earlier
  164. versions.  The new version is faster, and will not create the virtual disc file
  165. if enough RAM is available to hold the entire document, which is normally
  166. the case.
  167.  
  168. The program is capable of producing disc files containing lines one character
  169. longer than it can read.  The long input lines are split, the second half always
  170. being a null line.  Fixing the idiosyncrasy would slow the disc transfer rate
  171. and doing so does not seem to be a good trade-off.  The problem is avoided
  172. limiting the line length to 253 characters.  Arbitrarily long lines from other
  173. sources are automatically split into chunks which fit when the file is read.  A
  174. warning is issued on the occurrence.
  175.  
  176. In the ^KB block moves, most cursor positioning commands, including ^J, can be
  177. used to move to the new block location.  String searches can't be used in this
  178. version, although it ought to work that way.
  179.  
  180. In support of the philosophy of free cursor movement, the ^X and down arrow
  181. cursor positioning commands have been enhanced in a way that is a convenience,
  182. but could occasionally cause trouble.  If the cursor is on the last line of the
  183. document and moved further down by these keys then new null lines are created at
  184. the end of the document.  These lines are not automatically removed, and they
  185. are classified as changed lines.
  186.  
  187. The handling of error messages is a little different than that of Wordstar, and
  188. the difference may cause some trouble at first to the experienced Wordstar user.
  189. There are exceptions, but normally the presence of an error message does not
  190. mean that the escape key has to be used.  Just continue editing, and the message
  191. will vanish on the first keystroke.  The use of any cursor positioning command
  192. is an easy way to make the message vanish.  On the other hand, if the program is
  193. not in the edit mode at the time of the error then a keystroke is required to
  194. clear the message but the key is discarded.  The escape key can be used for this
  195. purpose.
  196.  
  197. ASCII codes 0x80 to 0xff can be entered by holding down the alt key and entering
  198. the 3-digit decimal ASCII code from the numeric keypad (the other number keys
  199. can't be used).  See the Sidekick display or the IBM technical reference manual
  200. for the full character set.  The resulting characters can be edited like
  201. ordinary text.
  202.  
  203.  
  204.  
  205.  
  206. .ce
  207.                                  Paragraphing
  208.  
  209.  
  210. The paragraph reform function is a full-fledged runoff program.  It is capable
  211. of doing things to the text file which in most cases you don't want.  Use the
  212. dot commands carefully until you are sure of their functioning.  The dot
  213. commands have been left in this file for tutorial purposes.
  214.  
  215. These extra features include such things as adding page numbers and headers.
  216. Such lines have no lasting value in the original file because the page numbers
  217. change with each update.  If these extended features are to be utilized it is
  218. best to copy the original file to a temporary file before reforming it.  The
  219. capability is useful for seeing how the final text will look on a printer, or
  220. for producing a temporary file for printing.
  221.  
  222. .in 15
  223. .rm 65
  224.                When the dot commands are used to reform the
  225.                master file, the set should be limited to those
  226.                that are reversible.  Changing the right margin is
  227.                a process which can be reversed by reforming with
  228.                the original right margin in the .rm dot command.
  229.                Adding new lines containing page numbers cannot be
  230.                automatically reversed.  The distinction is
  231.                important in this application, because the master
  232.                file can be reformed.
  233.  
  234. .in 0
  235. .rm 80
  236.  
  237. The reforming function serves a second purpose.  After editing, the right edges
  238. of paragraphs become ragged.  The ^QP function will even them up again.  The
  239. reforming function has defaults appropriate for viewing the material on the
  240. screen.  It is therefore often not necessary to have any dot commands in the
  241. material.  The default configuration never creates new lines, except for those
  242. due to line overflow.  The dot commands remain in the output, as the purpose of
  243. the default configuration is to make text more readable on the screen, while
  244. continuing to serve as the master file.  The reformatted file is an ordinary
  245. text file.  There are no hidden control functions.
  246.  
  247. Dot commands occupy a line each.  They begin with a period, which must be in
  248. column 1.  They have no special significance if not in column 1.
  249.  
  250. The nf (no fill) command stops all reformatting.  Material following the nf will
  251. not be affected in any way. fi (fill) resumes paragraph reforming.  The blocking
  252. effect of nf includes indentation.
  253.  
  254. In order to achieve reversibility, the old indentation in filled regions is
  255. removed before interpreting the new indentation commands.
  256.  
  257. The first line of a paragraph may or may not be indented relative to the rest.
  258. The output will follow the style of the input.  Paragraphs must be separated by
  259. at least one blank line.
  260.  
  261. The default .pl (lines per page) value is 66.  The .he command must be used to
  262. activate pagination.  A blank line can be used for the header if no actual
  263. header is wanted.
  264.  
  265. The .ne (need) command is used to force all of a table or other entity to be
  266. printed on one page.  A new page is begun at the .ne <lines> command if fewer
  267. than <lines> remain on the current page.
  268.  
  269. To obtain a complete list of the dot commands enter ^QP followed by F1.
  270.  
  271. Paragraph reforming can be undone, as can all editing commands, but most
  272. documents will exceed the 100-line undo limit.  In this case the old line is
  273. deleted and the reformatted line added, which counts as two steps.  Only 50
  274. lines can be undone.
  275.  
  276. Once reforming is requested the program will ask if the dot commands are to be
  277. deleted.  In major documents the dot commands are not normally deleted in the
  278. master file, but rather in a temporary copy of it.
  279.  
  280. If the dot commands are left in the document by the reforming process then the
  281. dot commands are not counted in determining the location of page breaks.  This
  282. behavior is by design because the document in that form is intended for analysis
  283. rather than printer output.
  284.  
  285. The range of the dot commands is over an integral number of lines, but the lines
  286. are not necessarily lines in the conventional sense.  If a single word in the
  287. middle of a sentence is underlined then the word has to appear on a separate
  288. line in the master file, but after filling the word can be in the middle of a
  289. line in the output file.
  290.  
  291. The following illustrates the use of the .he and .fo commands.  These commands
  292. have been disabled since this file was reformatted by moving them to the right of
  293. column one.  The argument of pl (lines per page) has to be set to the right
  294. value for your printer when using these commands. .bp is the begin page command,
  295. with an optional page number.
  296.  
  297. .nf
  298.  
  299.  .he     This line goes at the top of each page.  The page number is #.
  300.  .fo     This line goes at the bottom    - # -
  301.  .bp 100
  302.  
  303. Actual output:
  304.  
  305.      This line goes at the top of each page.  The page number is 100.
  306.  
  307.  ......text......
  308.  ......more text ....
  309.  
  310.      This line goes at the bottom    - 100 -
  311.  
  312.  .bp
  313.  
  314.      This line goes at the top of each page.  The page number is 101.
  315.  
  316.      This line goes at the bottom    - 101 -
  317.  
  318.  
  319. .fi
  320. .ce
  321.                               Search and Replace
  322.  
  323. The ^QA and ^QF string search and replace commands are similar to those of
  324. Wordstar. ^QF searches forward or backward; ^QA searches and replaces.  The
  325. control key may or may not be held down for the second character of all two-key
  326. control sequences.  The ^QA and ^QF are prompted.
  327.  
  328. The function keys provide alternatives to the string commands which are usually
  329. easier to use.  Their advantage is that the search direction is specified by
  330. dedicated keys rather than by a prompted response.  The equivalents of the ^L
  331. repeat command are especially convenient because it is easy to rock back and
  332. forth between two occurrences of a variable name or label.
  333.  
  334. Some of the permutations are:
  335. .nf
  336.  
  337. F2 string1 F3                 Backward search for string1
  338. F2 string1 F4                 Forward search for string1
  339. F2 string1 F2 string2 F3      Backward search and replace
  340. F2 string1 F2 string2 F4      Forward search and replace
  341.  
  342. F3        Convert last F2 command to reverse and resume
  343. F4        Convert last F2 command to forward and resume
  344. ^L        Resume last F2 command without direction change
  345.  
  346. .fi
  347. The F4 key is always associated with the forward direction;  the F3 key
  348. is associated with the reverse direction.
  349. The ^QF and ^QA commands can be used interchangeably with the F2 commands, and
  350. the two forms can be intermixed.  F3 resumes a ^QA in exactly the same way it resumes an F2 command,
  351. for example.  It is also acceptable to terminate an F2 command with a carriage
  352. return instead of F3 or F4, in which case the program will ask for the search
  353. direction as though it were a ^Q command.
  354.  
  355. All search operations wrap at beginning and end of file.  This can be an little
  356. disconcerting at first.  The advantage to it is that if the sought string exists
  357. anywhere in the file it will be found.  It is necessary to pay attention to the
  358. displayed line number in order to retain orientation, though.  EOF is shown in
  359. the status line when the search passes end of file;  BOF is shown for beginning
  360. of file when the search wraps in the reverse direction.
  361.  
  362. Search and replace operations can be aborted with the escape key to perform
  363. editing in the vicinity of one of the replacements, then resumed by F3 and F4.
  364.  
  365. The initial replacements on the current line may alter the cursor position after
  366. the wrap operation returns to that line.  The displacement is considered, and
  367. the replacement stops at the right location.
  368.  
  369. The new string in the search and replace command may be a null string (typed in
  370. as <ret>, or as F2 string F2F4), which totally deletes the old string.
  371.  
  372.  
  373. .ce
  374.                                     Options
  375.  
  376. Control characters are allowed in the replacement string if you must.  A ^Z in
  377. the middle of a document will cause other processors to proceed as though the
  378. last portion did not exist.  There are other problems.  SE itself is immune to
  379. embedded control characters (except ^Z during disc reads, and 0x00 unless you
  380. mean it), but using them in documents is generally not a good idea.  They will
  381. be converted to a question mark on input unless you specify the -C option.  The
  382. -C option enables them in the primary disc read and in the F2 or ^QA replacement
  383. string.  The only way to enter them from the keyboard is to first enter some
  384. other character sequence, then with the -C option active, use the F2 command to
  385. replace the sequence with the control codes.  A message is displayed when the
  386. file is read if the file contains control codes.  The message indicates whether
  387. or not the -C option is active.
  388.  
  389. If the -C option is active the <esc> key embeds like any other control
  390. character.  As a consequence, once a replacement command is initiated it cannot
  391. be aborted by <esc> while the replacement string is being entered.  It can be
  392. aborted during the ensuing prompt if the ^QA form is used, or after the first
  393. replacement if the F2 key is used.  The first replacement can be undone if
  394. necessary, effectively canceling the command.
  395.  
  396. The options are changed at execution time with the F7 key.  They can also be
  397. specified on the command line at load time.  The load time options are separated
  398. by spaces.  An example is
  399.  
  400. se filename -m30 -w
  401.  
  402. The -p option allows the importation of Wordstar document mode files.  The only
  403. function performed by the -p option is to zero the parity bit of each ASCII
  404. character in the primary file as it is read.  Some editing will be required
  405. after the conversion, but the input is at least legible.  SE does not embed
  406. control characters unless they originate explicitly at the keyboard.
  407.  
  408. The -Z option controls whether or not a ^Z end of file marker is written to the
  409. output files.  Text files on the IBM PC normally do have the ^Z EOF marker, and
  410. that is default.  Some Intel (R) software for the AT will not accept the ^Z, and
  411. there are probably other exceptions. (The DOS copy command has options for
  412. converting files from one type to the other).  The IBM standard for text files
  413. requires the ^Z, so use the default configuration unless there is a specific
  414. reason not to.  The option has no effect on disc reads.  If an EOF mark is
  415. present then that is taken as the end of file; the file size is otherwise
  416. determined from the file size in the disc directory.
  417.  
  418. The primary file being edited is automatically detabbed if tabs are present.
  419. The correct tab setting must be used for the result to look right.  The default
  420. setting is 8.  The tab setting can be changed in the invocation line.
  421.  
  422. se filespec -t4
  423.  
  424. will set the tabs to 4, for example.  This option need be used only once on a
  425. given file because thereafter the file will not contain any tabs.  The keyboard
  426. tab key is a cursor positioning command.  It has no direct effect on the text.
  427. A future version will provide an automatic entab on output if requested.
  428.  
  429. The -Mnnn option is provided primarily to facilitate testing of the virtual
  430. memory functions on a system with enough RAM that the disc temporary file is not
  431. normally activated.  The option would also be useful in a time-shared
  432. environment where it is not neighborly to take large chunks of memory.  Another
  433. possible reason for limiting the amount of memory allocated is that when all of
  434. it is taken DOS must partially reload itself when the editor exits.  DOS shares
  435. part of high memory with the memory allocation pool.  This DOS function is
  436. automatic and transparent, but might prove objectionable on a floppy disc
  437. system.  The heaviest use of the hardware push stack in this version is due to
  438. the virtual disc activity.  The -M option must therefore be used in evaluating
  439. the link edit stack size specification if the program is recompiled.
  440.  
  441. The temporary disc file normally goes in the default directory of the default
  442. drive.  The -Dd invocation option can be used to place the temporary file on
  443. drive d, with d = 'A' to 'Z'.  The directory can't be specified for the
  444. temporary file, but the file is removed before the program exits so that should
  445. not matter.  The -D option is not normally needed.
  446.  
  447. The other options can be seen by using the F7 key.
  448.  
  449.  
  450.  
  451. .nf
  452. Gary Osborn
  453. Electro Chemical Devices, inc
  454. 23665 Via Del Rio
  455. Yorba Linda CA 92686
  456.  
  457. June 1990
  458.  
  459.  
  460.  
  461.  
  462.  
  463.