about summary refs log blame commit diff stats
path: root/cscreen.lisp
blob: d5b522d3b593889b2c31a2ebb9c25b18ba3334cf (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                           
(defpackage #:cscreen
  (:use #:common-lisp)
  (:export #:page #:cursor #:clrtoeol #:rvson #:rvsoff))
(in-package #:cscreen)
(defconstant +esc+ (coerce 27 'character))
(defun page ()
   (format *standard-output* "~C[2J" +esc+))
(defun cursor (row column)
   (format *standard-output* "~C[~D;~DH" +esc+ row column))
(defun clrtoeol ()
   (format *standard-output* "~C[0K" +esc+))
(defun rvson ()
   (format *standard-output* "~C[7m" +esc+))
(defun rvsoff ()
   (format *standard-output* "~C[27m" +esc+))
(provide "cscreen")