method to insert wide character in ncurses window
This commit is contained in:
parent
3af1284cf8
commit
ed534363a2
|
@ -15,6 +15,11 @@ namespace krikkel::NCursesPtyWindow
|
||||||
return ::wadd_wch(w, character);
|
return ::wadd_wch(w, character);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Window::ins_wch(const cchar_t *character)
|
||||||
|
{
|
||||||
|
return ::wins_wch(w, character);
|
||||||
|
}
|
||||||
|
|
||||||
int Window::get_wch(wint_t *character)
|
int Window::get_wch(wint_t *character)
|
||||||
{
|
{
|
||||||
return ::wget_wch(w, character);
|
return ::wget_wch(w, character);
|
||||||
|
|
|
@ -22,6 +22,12 @@ inline void UNDEF(get_wch)(wint_t *character) { get_wch(character); }
|
||||||
#define get_wch UNDEF(get_wch)
|
#define get_wch UNDEF(get_wch)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ins_wch
|
||||||
|
inline void UNDEF(ins_wch)(cchar_t *character) { ins_wch(character); }
|
||||||
|
#undef ins_wch
|
||||||
|
#define ins_wch UNDEF(ins_wch)
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace krikkel::NCursesPtyWindow
|
namespace krikkel::NCursesPtyWindow
|
||||||
{
|
{
|
||||||
class Window : public NCursesWindow
|
class Window : public NCursesWindow
|
||||||
|
@ -29,6 +35,7 @@ namespace krikkel::NCursesPtyWindow
|
||||||
public:
|
public:
|
||||||
Window(int lines, int columns, int y, int x);
|
Window(int lines, int columns, int y, int x);
|
||||||
int add_wch(const cchar_t *character);
|
int add_wch(const cchar_t *character);
|
||||||
|
int ins_wch(const cchar_t *character);
|
||||||
int get_wch(wint_t *character);
|
int get_wch(wint_t *character);
|
||||||
|
|
||||||
SingleUserInput readSingleUserInput();
|
SingleUserInput readSingleUserInput();
|
||||||
|
|
Loading…
Reference in a new issue