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

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

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

(defvar #:tty:ltw:ymax 68)
(defvar #:tty:ymax 68) ;  compatibilite' v15

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

(de #:tty:ltw:tybeep ()
    (tyo 27 91 63 53 108 27 91 63 53 104))

(de #:tty:ltw:tycls ()
    (tyo 27 91 48 49 59 48 49 72 27 91 63 51 49 104 27 91 74))

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

(de #:tty:ltw:tycleos ()
    (tyo 27 91 63 51 49 104 27 91 74))

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

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

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

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

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

(de #:tty:ltw:tyattrib (x)
    (if x (tyo 27 91 52 109) (tyo 27 91 109)))

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

(de #:tty:ltw:tyinsch (arg)
    (tyo 27 91 52 104 arg 27 91 52 108))

(de #:tty:ltw:typrologue ()
    (tyo 27 91 63 51 49 104 27 91 63 55 104 27 91 63 56 104 27 91 63 51 49 104
        )
    (#:tty:ltw:tycls))

(de #:tty:ltw:tyepilogue ()
    (tycursor 0 (sub1 #:tty:ltw:ymax)))

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