diff --git a/Window.cpp b/Window.cpp index 4647ff2..96e7b0e 100644 --- a/Window.cpp +++ b/Window.cpp @@ -15,6 +15,11 @@ namespace krikkel::NCursesPtyWindow 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) { return ::wget_wch(w, character); diff --git a/include/NCursesPtyWindow/Window.hpp b/include/NCursesPtyWindow/Window.hpp index 6598a82..cf4f59a 100644 --- a/include/NCursesPtyWindow/Window.hpp +++ b/include/NCursesPtyWindow/Window.hpp @@ -22,6 +22,12 @@ inline void UNDEF(get_wch)(wint_t *character) { get_wch(character); } #define get_wch UNDEF(get_wch) #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 { class Window : public NCursesWindow @@ -29,6 +35,7 @@ namespace krikkel::NCursesPtyWindow public: Window(int lines, int columns, int y, int x); int add_wch(const cchar_t *character); + int ins_wch(const cchar_t *character); int get_wch(wint_t *character); SingleUserInput readSingleUserInput();