Created
April 1, 2015 03:58
-
-
Save tuturto/1c011c371f6629073bdf to your computer and use it in GitHub Desktop.
Getting cl-charms to support colour in Windows and sdl build of pdcurses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(in-package #:cl-charms/low-level) | |
; #define COLOR_PAIR(n) (((chtype)(n) << PDC_COLOR_SHIFT) & A_COLOR) | |
; for 32-bit curses | |
(defun COLOR-PAIR (n) | |
(logand (ash n 24) #xff000000)) | |
;(defun COLOR-PAIR (n) | |
; (logand (ash n 24) (ash #x7fffffff 24))) | |
(export (find-symbol "COLOR-PAIR" ':cl-charms/low-level) ':cl-charms/low-level) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment