Ignore:
Timestamp:
11/04/2007 06:19:33 AM (19 years ago)
Author:
David Owen <dsowen@…>
branch-nick:
tui-new
revision id:
dsowen@fugue88.ws-20071104061933-b5oiof728551luy5
Message:

Major overhaul to get rid of CDK stuff, and modularize all the ncurses stuff.
Using CLOS for genericity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/display-string.lisp

    r25 r28  
    1 (defpackage #:display-string
    2   (:use #:cl #:cdk #:cl-ppcre #:dso-lex)
     1(defpackage #:tui-display-string
     2  (:use #:cl #:cl-ppcre #:dso-lex #:tui-cursor #:tui-output #:tui-window)
    33  (:export #:enquote #:dequote #:render))
    44
    5 (in-package #:display-string)
     5(in-package #:tui-display-string)
    66
    77
     
    7777                  (attr (getf +attributes+ (char-downcase image))))
    7878              (if on
    79                   (cdk::c-wattron window attr)
    80                   (cdk::c-wattroff window attr))))))))
     79                  (cdk::c-wattron (window-pointer window) attr)
     80                  (cdk::c-wattroff (window-pointer window) attr))))))))
    8181
    8282(defun test ()
    8383  (let ((m "`UNow `B`Ris `bthe`r ``time.'`u"))
    8484    (with-screen (s)
    85       (cdk::c-erase-window s)
    86       (cdk::c-refresh-window s)
    87       (with-der-window (w s 3 10 5 5)
    88         (wmove w 0 0)
     85      (erase s)
     86      (refresh s)
     87      (with-subwindow (w s 3 10 5 5)
     88        (setf (cursor-position w) '(0 0))
    8989        (add-string w (make-sequence 'string 15 :initial-element #\.))
    9090        (render m w 1 -2)
    91         (input:%wget-wch w)))))
     91        (tui-input:read-key w)))))
Note: See TracChangeset for help on using the changeset viewer.