Changeset main,29 for main/window/screen.lisp
- Timestamp:
- 11/05/2007 08:04:36 PM (19 years ago)
- branch-nick:
- tui-new
- revision id:
- dsowen@fugue88.ws-20071105200436-lr8xar2scppnugzp
- File:
-
- 1 edited
-
main/window/screen.lisp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
main/window/screen.lisp
r28 r29 18 18 (defcfun "initscr" :pointer) 19 19 20 (defcfun "start_color" :int) 21 22 (defcfun "init_pair" :int 23 (pair :short) 24 (f :short) 25 (b :short)) 26 20 27 (defcfun "endwin" :int) 21 28 … … 26 33 (signal 'screen-initialization-error)) 27 34 (unwind-protect 35 (start-color) 36 (dotimes (i 63) 37 (let ((j (1+ i))) 38 (init-pair j (floor j 8) (mod j 8)))) 28 39 (let ((,screen (make-instance 'screen-window :ptr ,ptr))) 29 40 ,@body) … … 68 79 `(let ((,ptr (newwin ,height ,width ,y ,x))) 69 80 (when (null-pointer-p ,ptr) 70 (signal screen-window-creation-error))81 (signal 'screen-window-creation-error)) 71 82 (let ((,window (make-instance 'screen-window :ptr ,ptr))) 72 83 (unwind-protect (progn ,@body)
Note: See TracChangeset
for help on using the changeset viewer.
