src/low-level/bearlibterminal.swig @ a2fb5d06bfb6

Add box drawing util
author Steve Losh <steve@stevelosh.com>
date Thu, 22 Jun 2017 18:37:44 +0000
parents 05bcf3c72a27
children 8e35ed93d731
%module bearlibterminal

%insert("lisphead") %{
(cl:in-package :bearlibterminal/low-level)

(cffi:defctype color :uint)

(cffi:define-foreign-library bearlibterminal
  (:darwin "lib/libBearLibTerminal.dylib"))

(cffi:use-foreign-library bearlibterminal)
%}

%feature("intern_function","1");
%feature("export");

%typemap(cin)  color_t "color";
%typemap(cout) color_t "color";

%typemap(cin)  int8_t* ":string";
%typemap(cout) int8_t* ":string";

%include "src/low-level/include/BearLibTerminal.h"