;;; -*- Mode:Lisp; Readtable:ZL; Package:USER; Base:10; Patch-File:T -*- ;;; Patch file for System version 123.32 ;;; Reason: ;;; Display TCP/FTP host units on Peek File System page ;;; Written 6-Oct-87 19:41:56 by pld (Peter L. DeWolf) at site LMI Cambridge ;;; while running on Jack Flanders from band 2 ;;; with Experimental System 123.31, Experimental Local-File 73.0, Experimental FILE-Server 22.0, Experimental Unix-Interface 11.0, Experimental Tape 18.0, Experimental KERMIT 34.0, Experimental ZMail 71.0, Experimental Lambda-Diag 15.0, microcode 1754, SDU Boot Tape 3.12, SDU ROM 8. ; From modified file DJ: L.NETWORK.IP-TCP.USER; FTP-ACCESS.LISP#9 at 6-Oct-87 19:42:02 #10R FILE-SYSTEM#: (COMPILER-LET ((*PACKAGE* (PKG-FIND-PACKAGE "FILE-SYSTEM"))) (COMPILER::PATCH-SOURCE-FILE "SYS: NETWORK; IP-TCP; USER; FTP-ACCESS  " (defmethod (ftp-access :peek-file-system) () (tv:scroll-maintain-list `(lambda () ',(send self :host-units)) #'peek-ftp-host-unit)) )) ; From modified file DJ: L.NETWORK.IP-TCP.USER; FTP-ACCESS.LISP#9 at 6-Oct-87 19:51:53 #10R FILE-SYSTEM#: (COMPILER-LET ((*PACKAGE* (PKG-FIND-PACKAGE "FILE-SYSTEM"))) (COMPILER::PATCH-SOURCE-FILE "SYS: NETWORK; IP-TCP; USER; FTP-ACCESS  " (defun peek-ftp-host-unit (unit &optional (indent 2)) "Generate a scroll item describing a host unit" (list () (tv:scroll-parse-item ':mouse `(nil :menu-choose ("Host-unit operations" ("Reset" :eval (funcall thisunit ':reset) :documentation "Click left to close this connection") ("Inspect" :eval (send tv:selected-window :force-kbd-input `(inspect ,thisunit)) :documentation "Click left to INSPECT this host-unit.") ("Describe" :eval (send tv:selected-window :force-kbd-input `(describe ,thisunit)) :documentation "Click left to DESCRIBE this host-unit.")) :documentation "Menu of things to do to this host-unit." :bindings ((thisunit ',unit) (typwin ',(funcall self ':typeout-window)))) (format nil "~V@THost unit for ~A" indent (send unit :host)) `(:FUNCTION ,#'(LAMBDA (UNIT) (format nil " with ~:[closed~;open~] control connection" (symeval-in-instance unit 'ftp:*cin*))) (,UNIT))))) ))