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);