mirror of
https://github.com/PDP-10/its.git
synced 2026-02-12 11:07:03 +00:00
Resolves #284. Commented out uses of time-origin in maxtul; mcldmp (init) until we can figure out why it gives arithmetic overflows under the emulators. Updated the expect script statements in build_macsyma_portion to not attempt to match expected strings, but simply sleep for some time since in some cases the matching appears not to work.
252 lines
8.9 KiB
Plaintext
252 lines
8.9 KiB
Plaintext
;; -*- Mode: Lisp; Package: Macsyma; Ibase: 8 -*-
|
||
|
||
(macsyma-module edits)
|
||
|
||
;; Macsyma display-oriented expression editor
|
||
;; MacLisp I/O and screen management
|
||
;; See EMAXIM;ED > and EMAXIM;EDCOM > for more information.
|
||
;; Written: Feb 17, 1979 By RZ, based on a version by CWH and BEE
|
||
;; Rewritten: June 2, 1979 by CWH for Macsyma Users' Conference
|
||
|
||
;; Global variables and structure definitions.
|
||
|
||
(load-macsyma-macros edmac)
|
||
|
||
;; To be added:
|
||
;; Expression file I/O
|
||
;; Use ITS split-screen stuff
|
||
|
||
(eval-when (compile)
|
||
(cond ((not (status feature its))
|
||
(error "Compile on ITS only"))))
|
||
|
||
; Possible values for the TCTYP word returned by CNSGET.
|
||
; %TNSFW -- 7. Software -- CRTSTY or SUPDUP
|
||
; %TNESC -- 9. VT52 type terminal
|
||
; %TNRAY -- 11. Teleray 1061
|
||
|
||
; Bit mask for the TTYSTS word returned by TTYGET
|
||
; %TSSAI -- 4000_18. Use Sail character set for output
|
||
|
||
; Bit masks for the TTYOPT word returned by CNSGET.
|
||
; %TOCID -- 1_18. Can do character insertion and deletion
|
||
; %TOLID -- 2_18. Can do line insertion and deletion
|
||
; %TOFCI -- 10_18. Can generate full 12-bit character set
|
||
; %TOOVR -- 1000_18. Can overstrike (raster scan graphic)
|
||
|
||
(defvar TTYGET (syscall 5 'ttyget tyo))
|
||
(defvar CNSGET (syscall 6 'cnsget tyo))
|
||
|
||
(let ((TTYOPT (fifth CNSGET)))
|
||
(setq idel-chars-available? (not (= 0 (logand TTYOPT #o 1_18.))))
|
||
(setq idel-lines-available? (not (= 0 (logand TTYOPT #o 2_18.))))
|
||
(setq 12-bit-kbd-available? (not (= 0 (logand TTYOPT #o 10_18.))))
|
||
(setq overstrike-available? (not (= 0 (logand TTYOPT #o 1000_18.)))))
|
||
|
||
;; On supdup from AI, draw with a solid box. On supdup from Plasma or Lisp
|
||
;; Machines, use line graphics. The TTY variable is the same as the TCTYP word
|
||
;; returned by CNSGET.
|
||
|
||
(if (and (= tty 7)
|
||
12-bit-kbd-available?
|
||
idel-lines-available?)
|
||
(setq $boxchar '|& |