home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / PROGRAMS / BKGRONDR / BGHIST04.LBR / BGHIST.HZP / BGHIST.HLP
Text File  |  2000-06-30  |  3KB  |  124 lines

  1. :
  2.        BGii HISTORY and ERROR line editor controls
  3.  
  4.     back    fwd    delete    delete    delete
  5.             left    right    all
  6.  
  7. Char    ^S    ^D    BS,DEL    ^G
  8.                 
  9. Word    ^A    ^F    ^W    ^T
  10.  
  11. Cmd    ^Q    ^R            ^Z
  12.  
  13. Line    ^E    ^X        ^Y    ^U
  14.  
  15. toggle:
  16. ESC:    command history recording (single token commands skipped)
  17. ^B:    recall of Both tasks' commands
  18. ^V:    insert/oVerwrite mode
  19.  
  20. ^L:    Look (search) backward for matching partial command
  21. ^J:    this help (LINEFEED)
  22.  
  23.  
  24.  
  25. Prompt is:
  26.          =  uppercase DU if upper-task, lower if lower task
  27.         /
  28. [!+^] hr:mi Duu>
  29. / | \
  30. | |  =  ^ if INSERT active
  31. | |
  32. | =     + if upper-task, - if lower-task and recall BOTH active
  33. |
  34. =       ! if LOG active
  35.  
  36. TIME ON/OFF controls hr:mi display in prompt.
  37.  
  38.  
  39.  
  40.                CP command
  41.  
  42.     CP  [DU:|DIR:]destination=[DU:|DIR:]source        (CP/M form)
  43.  
  44. or,     CP  [DU:|DIR:]source  [DU:|DIR:]destination        (MS-DOS form)
  45.  
  46.     unambiguous name only.
  47.  
  48. If DateStamper is active, destination file's DateStamp = source's DateStamp.
  49.  
  50.  
  51.     REGister  command
  52.  
  53.     REG D or REG        <-- Display Register Value
  54.  
  55.     REG Mreg        <-- Decrement Register Value
  56.     REG -reg
  57.  
  58.     REG Preg        <-- Increment Register Value
  59.     REG +reg
  60.  
  61.     REG Sreg value        <-- Set Register Value
  62.  
  63.     where:    reg   = 0 ... 9
  64.         value = 0 ... 255
  65.  
  66.  
  67. These are technical DOC-notes:        April 13, 1987
  68.  
  69. They are provided in hopes that someone will be inspired to write
  70. an editor to manipulate the history file!
  71.  
  72. BGHIST.VAR is in user 0 on swap drive.
  73.  
  74. BGHIST [n] invokes BGHIST as the history shell for currently-active
  75. task.  
  76.     n = size of swap file x 2K, default is n=1.
  77.  
  78. On first task switch, run BGHIST again to install as alternate-task
  79. shell.
  80.  
  81.  
  82. BGERRH invokes the error-handler.  It has the same editing controls
  83. as BGHIST.
  84.  
  85.  
  86. Data Structure for BGHIST.VAR
  87.  
  88. Sector 0:
  89. recorq:    ds    1        ;NZ if record-line flag is on
  90. insert:    ds    1        ;NZ if insert-mode is on
  91. skipq:    ds    1        ;NZ if search/dispay only current task
  92.                 ;i.e. Both is false
  93. maxrec:    ds    1        ;max. record number for VAR file size
  94. newptr:    ds    2        ;ptr to <record> for next command line
  95. topptr:    ds    2        ;ptr to last-recorded history
  96.     ...
  97.     ds    2
  98. ;
  99. Sector 1...maxrec
  100.     command-line 1,NUL, command-line 2, NUL, ...
  101.  
  102. The first byte of the command line has bit 7 set if the command
  103. was entered in the LOWER task.
  104.  
  105. Each recorded command line has a 2-byte <record> pointer:
  106.  
  107.     ds    1        ;offset (0...7Fh)
  108.     ds    1        ;file record number (1...maxrec)
  109.  
  110. The pointer list is terminated by a NUL record number.
  111. E.g.:
  112.  
  113. newptr:    dw    0248        ;record 2, offset 48 will begin next line
  114. topptr:    dw    0204        ;most recently recorded command at rec2,off 4
  115.     dw    0170
  116.     dw    0112
  117.     dw    0100        ;first line at rec. 1, offset 0
  118.     dw    00xx        ;no more
  119.  
  120. Note that the pointers will wrap around when/if the file fills up,
  121. beginning again with record 1 (not 0, which holds the pointers).
  122.  
  123.  
  124.  i