Changeset main,86
- Timestamp:
- 02/15/2008 09:27:44 PM (18 years ago)
- branch-nick:
- tui
- revision id:
- dsowen@fugue88.ws-20080215212744-nvsfm7il0t5cx7ki
- Location:
- main/window
- Files:
-
- 2 edited
-
generic.lisp (modified) (1 diff)
-
screen.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
main/window/generic.lisp
r66 r86 18 18 #:screen-window-destruction-error 19 19 #:with-screen 20 #:without-screen 20 21 #:with-screen-window)) 21 22 -
main/window/screen.lisp
r82 r86 27 27 (defcfun "endwin" :int) 28 28 29 (defvar *screen*) 30 29 31 (defmacro with-screen ((screen) &body body) 30 32 (with-gensyms (ptr) … … 38 40 (let ((j (1+ i))) 39 41 (init-pair j (mod j 8) (floor j 8)))) 40 (let ((,screen (make-instance 'screen-window :ptr ,ptr))) 42 (let* ((*screen* (make-instance 'screen-window :ptr ,ptr)) 43 (,screen *screen*)) 41 44 ,@body)) 42 45 (endwin))))) 46 47 (defmacro without-screen (&body body) 48 `(unwind-protect 49 (progn 50 (endwin) 51 (progn ,@body)) 52 (refresh *screen*))) 43 53 44 54
Note: See TracChangeset
for help on using the changeset viewer.
