home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / znode3 / z3sys / cled15.not < prev    next >
Encoding:
Text File  |  1993-06-08  |  1.5 KB  |  51 lines

  1. Note on RCPCLED 1.5
  2. August 12, 1991
  3. Rob Friefeld
  4.  
  5. CLED 1.5 does not work with the Z-System command scheduler AT.  AT must 
  6. know that a shell is running.  It determines that by checking ZCPR's 
  7. Command Status Flag.  CLED must not reset this flag until it is ready to 
  8. exit.
  9.  
  10. Code is easily modified.  Eliminate "Subtask 1".  Before "Subtask 4" 
  11. place the old Subtask 1 code.  (See below).
  12.  
  13. Note that a shell is only interrupted by AT if there has been no console 
  14. activity for a preset time interval.  If you are actively using the 
  15. shell, AT will not break in.  If you are leaving the machine unattended 
  16. and expect a scheduled task to execute, it is OK to leave a shell (CLED, 
  17. LSH, ZFILER) running.  It is NOT OK to leave an application running.
  18.  
  19. Here is a source code replacement section:
  20.  
  21. ;...
  22. ;
  23. ;=====    L I N E   E D I T ===========================================
  24. ;
  25.  
  26. ; This is the main entry point for the shell
  27. ; To do:
  28. ;  1 - Display prompt
  29. ;  2 - Get a line
  30. ;  3 - Reset shell bit
  31. ;  4 - Run the line
  32.  
  33. cledit:
  34. ; Subtask 1 -- Display system prompt
  35.     call    prompt
  36.  
  37. ;----------------------------------------
  38. ; Subtask 2 -- Get a line
  39.  
  40. ; The editor returns NZ if the shell pop command has been given.  If not, it
  41. ; returns the character count of the command line in B.
  42.  
  43.     call    edit
  44.  
  45. ;----------------------------------------
  46. ; Subtask 3 -- 
  47.     ld    hl,z3msg+3
  48.     res    0,(hl)        ; Reset shell bit
  49.  
  50. ;...
  51.