From cdd9d822df7ea0ce57ce1b2cb713f15f254d4f3f Mon Sep 17 00:00:00 2001
From: Sam Hocevar <sam@hocevar.net>
Date: Sun, 5 Nov 2006 18:06:09 +0000
Subject: [PATCH]   * Implemented putChar() and updated getChar()'s prototype.

---
 cxx/cucul++.cpp | 7 ++++++-
 cxx/cucul++.h   | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/cxx/cucul++.cpp b/cxx/cucul++.cpp
index b503a77..857c2c7 100644
--- a/cxx/cucul++.cpp
+++ b/cxx/cucul++.cpp
@@ -97,11 +97,16 @@ int  Cucul::setColorARGB(unsigned int f, unsigned int b)
     return cucul_set_color_argb(cv, f, b);
 }
 
-void Cucul::putChar(int x, int y, char ch)
+void Cucul::putChar(int x, int y, unsigned long int ch)
 {
     cucul_putchar(cv, x, y, ch);
 }
 
+unsigned long int Cucul::getChar(int x, int y)
+{
+    return cucul_getchar(cv, x, y);
+}
+
 void Cucul::putStr(int x, int y, char *str)
 {
     cucul_putstr(cv, x, y, str);
diff --git a/cxx/cucul++.h b/cxx/cucul++.h
index a1d9b63..5198e91 100644
--- a/cxx/cucul++.h
+++ b/cxx/cucul++.h
@@ -125,7 +125,7 @@ class Cucul
     int setColorANSI(unsigned char f, unsigned char b);
     int setColorARGB(unsigned int f, unsigned int b);
     void Printf(int x , int y , char const * format,...);
-    void putChar(int x, int y, char ch);
+    void putChar(int x, int y, unsigned long int ch);
     unsigned long int getChar(cucul_canvas_t *, int, int);
     void putStr(int x, int y, char *str);
     void Clear(void);