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

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

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

(defvar #:tty:sun:ymax 33)
(defvar #:tty:ymax 33) ;  compatibilite' v15

(de #:tty:sun: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:sun:tycls ()
    (#:tty:tyo 12))

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

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

(de #:tty:sun:tydelch ()
    (#:tty:tyo 27 91 80))

(de #:tty:sun:tyinsln ()
    (#:tty:tyo 27 91 76))

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

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

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

(de #:tty:sun:tyinsch (arg)
    (#:tty:tyo 27 91 64 arg))

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

(de #:tty:sun:tyepilogue ()
    (tycursor 0 33))

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