Changeset main,28 for main/display-string.lisp
- Timestamp:
- 11/04/2007 06:19:33 AM (19 years ago)
- branch-nick:
- tui-new
- revision id:
- dsowen@fugue88.ws-20071104061933-b5oiof728551luy5
- File:
-
- 1 edited
-
main/display-string.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
main/display-string.lisp
r25 r28 1 (defpackage #: display-string2 (:use #:cl #:c dk #:cl-ppcre #:dso-lex)1 (defpackage #:tui-display-string 2 (:use #:cl #:cl-ppcre #:dso-lex #:tui-cursor #:tui-output #:tui-window) 3 3 (:export #:enquote #:dequote #:render)) 4 4 5 (in-package #: display-string)5 (in-package #:tui-display-string) 6 6 7 7 … … 77 77 (attr (getf +attributes+ (char-downcase image)))) 78 78 (if on 79 (cdk::c-wattron windowattr)80 (cdk::c-wattroff windowattr))))))))79 (cdk::c-wattron (window-pointer window) attr) 80 (cdk::c-wattroff (window-pointer window) attr)))))))) 81 81 82 82 (defun test () 83 83 (let ((m "`UNow `B`Ris `bthe`r ``time.'`u")) 84 84 (with-screen (s) 85 ( cdk::c-erase-windows)86 ( cdk::c-refresh-windows)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)) 89 89 (add-string w (make-sequence 'string 15 :initial-element #\.)) 90 90 (render m w 1 -2) 91 ( input:%wget-wchw)))))91 (tui-input:read-key w)))))
Note: See TracChangeset
for help on using the changeset viewer.
