LISTING FOR >spec>on>11/30/82>glasstty.ctl COMPILED BY Multics LISP Compiler, Version hc9.2, June 5, 1981 ON 11/30/82 1529.2 mst Tue IN BEHALF OF Holmstedt.SysMaint.a ;;; *********************************************************** ;;; * * ;;; * Copyright, (C) Honeywell Information Systems Inc., 1982 * ;;; * * ;;; * Copyright (c) 1978 by Massachusetts Institute of * ;;; * Technology and Honeywell Information Systems, Inc. * ;;; * * ;;; *********************************************************** ;;; ;;; ;;; Glass tty display control ;;; From printing tty, BSG 6/29/78 ;;; Redone for new redisplay 7/7/78 ;;; For tty-no-cleolp, bsg 2/14/80 (declare (special X Y screenheight idel-lines-availablep idel-chars-availablep screenlinelen tty-type tty-no-upmotionp tty-no-cleolp)) (declare (array* (notype (newscreen ?)))) (defun DCTL-init () (setq X -777 Y -777) (setq tty-type 'teleray) (setq screenheight 24. screenlinelen 79.) (setq idel-chars-availablep nil idel-lines-availablep nil tty-no-upmotionp t tty-no-cleolp t)) (defun DCTL-position-cursor (x y) (prog () (and (= x X)(= y Y)(return nil)) (and (< X 0)(DCTL-crlf)) (and (= y Y) (progn (cond ((and (= x 0)(> X 4))(DCTL-cret)) ((< X x)(DCTL-display-char-string (substr (or (cadr (newscreen Y)) " ") (1+ X) (- x X)))) ((< (- X x) x) (do xx X (1- xx)(= xx x)(Rtyo 10))) (t (DCTL-cret) (DCTL-position-cursor x Y))) (setq X x) ;y is right by definition (return nil))) ;; Definitely going to a new line at this point (DCTL-nextline) (setq Y y) (DCTL-position-cursor x y))) (defun DCTL-assert-scpos (x y) (and x (setq X x)) (and y (setq Y y))) (defun DCTL-clear-rest-of-screen ()) (defun DCTL-nextline ()(Rtyo 12)) (defun DCTL-display-char-string (s) (Rprinc s) (setq X (+ X (stringlength s)))) (defun DCTL-cret () (Rtyo 15)(setq X 0)) (defun DCTL-crlf () (Rtyo 15)(Rtyo 12)(setq X 0)) Functions Defined Name Offset Offset Name DCTL-assert-scpos 174 0 DCTL-init DCTL-clear-rest-of-screen 206 32 DCTL-position-cursor DCTL-cret 235 174 DCTL-assert-scpos DCTL-crlf 250 206 DCTL-clear-rest-of-screen DCTL-display-char-string 220 210 DCTL-nextline DCTL-init 0 220 DCTL-display-char-string DCTL-nextline 210 235 DCTL-cret DCTL-position-cursor 32 250 DCTL-crlf Functions Referenced DCTL-cret DCTL-nextline Rtyo DCTL-crlf DCTL-position-cursor stringlength DCTL-display-char-string Rprinc substr ----------------------------------------------------------- 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