; Le←Lisp version 15.2 : compilation du terminal virtuel : macintosh

(setq #:sys-package:tty '#:tty:macintosh)

(defvar #:tty:macintosh:xmax 79)
(defvar #:tty:xmax 79) ;  compatibilite' v15

(defvar #:tty:macintosh:ymax 23)
(defvar #:tty:ymax 23) ;  compatibilite' v15

(de #:tty:macintosh:tycursor (col line)
    (#:tty:tyo 27 91)
    (incr line)
    (incr col)
    (#:tty:tyod line 0)
    (#:tty:tyo 59)
    (#:tty:tyod col 0)
    (#:tty:tyo 72))

(de #:tty:macintosh:tycls ()
    (#:tty:tyo 27 91 59 72 27 91 50 74))

(de #:tty:macintosh:tycleol ()
    (#:tty:tyo 27 91 75))

(de #:tty:macintosh:tycleos ()
    (#:tty:tyo 27 91 74))

; ** #:tty:termcap : macintosh : ne sait pas faire : tydelch

; ** #:tty:termcap : macintosh : ne sait pas faire : tyinsln

(de #:tty:macintosh:tydelln ()
    (#:tty:tyo 27 91 77))

(de #:tty:macintosh:tyattrib (x)
    (if x (#:tty:tyo 27 91 55 109) (#:tty:tyo 27 91 109)))

(defvar #:tty:macintosh:tyattrib ())
(defvar #:tty:tyattrib ()) ;  compatibilite' v15

(de #:tty:macintosh:tyattrib (x)
    (if x (#:tty:tyo 27 91 49 59 52 109) (#:tty:tyo 27 91 109)))

(defvar #:tty:macintosh:tyattrib ())
(defvar #:tty:tyattrib ()) ;  compatibilite' v15

; ** #:tty:termcap : macintosh : ne sait pas faire : tyinsch

(de #:tty:macintosh:typrologue ()
    (#:tty:macintosh:tycls))

(de #:tty:macintosh:tyepilogue ()
    (tycursor 0 23))

(defvar #:tty:macintosh:tyshowcursor t)
(defvar #:tty:tyshowcursor t) ;  compatibilite' v15