Changeset main,29 for main


Ignore:
Timestamp:
11/05/2007 08:04:36 PM (19 years ago)
Author:
David Owen <dsowen@…>
branch-nick:
tui-new
revision id:
dsowen@fugue88.ws-20071105200436-lr8xar2scppnugzp
Message:

WITH-SCREEN now initializes color.

Location:
main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/cdk.lisp

    r28 r29  
    2929
    3030
    31 (defcfun ("start_color" c-curs-start-color) :int)
    3231
    3332
  • main/window/screen.lisp

    r28 r29  
    1818(defcfun "initscr" :pointer)
    1919
     20(defcfun "start_color" :int)
     21
     22(defcfun "init_pair" :int
     23  (pair :short)
     24  (f :short)
     25  (b :short))
     26
    2027(defcfun "endwin" :int)
    2128
     
    2633         (signal 'screen-initialization-error))
    2734       (unwind-protect
     35            (start-color)
     36            (dotimes (i 63)
     37              (let ((j (1+ i)))
     38                (init-pair j (floor j 8) (mod j 8))))
    2839            (let ((,screen (make-instance 'screen-window :ptr ,ptr)))
    2940              ,@body)
     
    6879    `(let ((,ptr (newwin ,height ,width ,y ,x)))
    6980       (when (null-pointer-p ,ptr)
    70          (signal screen-window-creation-error))
     81         (signal 'screen-window-creation-error))
    7182       (let ((,window (make-instance 'screen-window :ptr ,ptr)))
    7283         (unwind-protect (progn ,@body)
Note: See TracChangeset for help on using the changeset viewer.