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

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

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

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

(de #:tty:ts1:tycursor (col line)
    (#:tty:tyo 27 61 (+ 32 line) (+ 32 col)))

(de #:tty:ts1:tycls ()
    (#:tty:tyo 27 42))

(de #:tty:ts1:tycleol ()
    (#:tty:tyo 27 116))

(de #:tty:ts1:tycleos ()
    (#:tty:tyo 27 89))

(de #:tty:ts1:tydelch ()
    (#:tty:tyo 27 87))

(de #:tty:ts1:tyinsln ()
    (#:tty:tyo 27 69))

(de #:tty:ts1:tydelln ()
    (#:tty:tyo 27 82))

(de #:tty:ts1:tyattrib (x)
    (if x (#:tty:tyo 27 103 52) (#:tty:tyo 27 103 48)))

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

(de #:tty:ts1:tyinsch (arg)
    (#:tty:tyo 27 81 arg))

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

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

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