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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

(de #:tty:htwist: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:htwist:tycls))

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

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