LISTING FOR >spec>on>11/30/82>regent200.ctl COMPILED BY Multics LISP Compiler, Version hc9.2, June 5, 1981 ON 11/30/82 1530.2 mst Tue IN BEHALF OF Holmstedt.SysMaint.a ;;; *********************************************************** ;;; * * ;;; * Copyright, (C) Honeywell Information Systems Inc., 1982 * ;;; * * ;;; *********************************************************** ;;; -*-LISP-*- ;;; ;;; ADDS Regent 200 ctl ;;; Ripped off from VIP7800 ctl 02/15/80 by CDT ;;; (declare (special X Y screenheight screenlinelen tty-type)) (declare (special idel-lines-availablep idel-chars-availablep)) (declare (special DCTL-prologue-availablep DCTL-epilogue-availablep DCTL-insert-mode-on)) ; Initialize terminal and terminal control package. (defun DCTL-init () (setq idel-lines-availablep t idel-chars-availablep t) (setq DCTL-prologue-availablep t DCTL-epilogue-availablep t) (setq screenheight 24. screenlinelen 79.) (setq tty-type 'regent200) (Rtyo 33)(Rprinc "s")(Rtyo 14) (setq X 0 Y 0) (DCTL-prologue)) ;;; Prologue code (defun DCTL-prologue () (setq DCTL-insert-mode-on nil) (Rtyo 14) (setq X 0 Y 0)) ;;; Epilogue code (defun DCTL-epilogue () (setq DCTL-insert-mode-on nil) (Rtyo 33)(Rprinc "s")(Rtyo 14)) ; Move terminal's cursor to desired position. (defun DCTL-position-cursor (x y) (cond ((and (= x X)(= y Y)) nil) ((and (< (+ (abs (- X x))(abs (- Y y))) 4)) (cond ((< X x) (do ex X (1+ ex)(= ex x)(Rtyo 6))) ((< x X) (do ex x (1+ ex)(= ex X)(Rtyo 25)))) (cond ((< Y y) (do wy Y (1+ wy)(= wy y)(Rtyo 12))) ((< y Y) (do wy y (1+ wy)(= wy Y)(Rtyo 32)))) (setq X x Y y)) ;; Direct Cursor Addressing is best. (t (setq X x Y y) (Rtyo 33)(Rprinc "Y")(Rtyo (+ 37 y))(Rtyo (+ 37 x)) ))) ;;; Output string. (defun DCTL-display-char-string (string) ((lambda (strx) (cond ((= strx 0)) ;bug in redisplay calls with no string (t (cond (DCTL-insert-mode-on (setq DCTL-insert-mode-on nil) (Rtyo 33) (Rprinc "F"))) (Rprinc string) (setq X (+ X strx))))) (stringlength string))) ; Clear to end of screen. (defun DCTL-clear-rest-of-screen () (Rtyo 33)(Rprinc "k")) ; Clear to end of line. (defun DCTL-kill-line () (Rtyo 33)(Rprinc "K")) (defun DCTL-insert-lines (n) (do i 1 (1+ i)(> i n) (Rtyo 33)(Rprinc "M"))) (defun DCTL-delete-lines (n) (do i 1 (1+ i)(> i n) (Rtyo 33)(Rprinc "l"))) (defun DCTL-insert-char-string (str) (cond (DCTL-insert-mode-on) (t (setq DCTL-insert-mode-on t) (Rtyo 33) (Rprinc "F"))) (Rprinc str) (setq X (+ X (stringlength str)))) (defun DCTL-delete-chars (n) (do i 0 (1+ i)(= i n) (Rtyo 33)(Rprinc "E"))) Functions Defined Name Offset Offset Name DCTL-clear-rest-of-screen 362 0 DCTL-init DCTL-delete-chars 526 52 DCTL-prologue DCTL-delete-lines 442 72 DCTL-epilogue DCTL-display-char-string 316 116 DCTL-position-cursor DCTL-epilogue 72 316 DCTL-display-char-string DCTL-init 0 362 DCTL-clear-rest-of-screen DCTL-insert-char-string 472 376 DCTL-kill-line DCTL-insert-lines 412 412 DCTL-insert-lines DCTL-kill-line 376 442 DCTL-delete-lines DCTL-position-cursor 116 472 DCTL-insert-char-string DCTL-prologue 52 526 DCTL-delete-chars Functions Referenced DCTL-prologue Rtyo stringlength Rprinc ----------------------------------------------------------- Historical Background This edition of the Multics software materials and documentation is provided and donated to Massachusetts Institute of Technology by Group BULL including BULL HN Information Systems Inc. as a contribution to computer science knowledge. This donation is made also to give evidence of the common contributions of Massachusetts Institute of Technology, Bell Laboratories, General Electric, Honeywell Information Systems Inc., Honeywell BULL Inc., Groupe BULL and BULL HN Information Systems Inc. to the development of this operating system. Multics development was initiated by Massachusetts Institute of Technology Project MAC (1963-1970), renamed the MIT Laboratory for Computer Science and Artificial Intelligence in the mid 1970s, under the leadership of Professor Fernando Jose Corbato. Users consider that Multics provided the best software architecture for managing computer hardware properly and for executing programs. Many subsequent operating systems incorporated Multics principles. Multics was distributed in 1975 to 2000 by Group Bull in Europe , and in the U.S. by Bull HN Information Systems Inc., as successor in interest by change in name only to Honeywell Bull Inc. and Honeywell Information Systems Inc. . ----------------------------------------------------------- Permission to use, copy, modify, and distribute these programs and their documentation for any purpose and without fee is hereby granted,provided that the below copyright notice and historical background appear in all copies and that both the copyright notice and historical background and this permission notice appear in supporting documentation, and that the names of MIT, HIS, BULL or BULL HN not be used in advertising or publicity pertaining to distribution of the programs without specific prior written permission. Copyright 1972 by Massachusetts Institute of Technology and Honeywell Information Systems Inc. Copyright 2006 by BULL HN Information Systems Inc. Copyright 2006 by Bull SAS All Rights Reserved