39 lines
933 B
C++
39 lines
933 B
C++
/**
|
|
* @brief Providing wide character methods missing in NCursesWindow.
|
|
* @author Christian Burger (christian@krikkel.de)
|
|
*/
|
|
|
|
#ifndef A2C3FDB7_7A85_4527_BC85_366E14149EB8
|
|
#define A2C3FDB7_7A85_4527_BC85_366E14149EB8
|
|
|
|
#include "SingleUserInput.hpp"
|
|
|
|
#include <ncursesw/cursesw.h>
|
|
|
|
#ifdef add_wch
|
|
inline void UNDEF(add_wch)(const cchar_t *character) { add_wch(character); }
|
|
#undef add_wch
|
|
#define add_wch UNDEF(add_wch)
|
|
#endif
|
|
|
|
#ifdef get_wch
|
|
inline void UNDEF(get_wch)(wint_t *character) { get_wch(character); }
|
|
#undef get_wch
|
|
#define get_wch UNDEF(get_wch)
|
|
#endif
|
|
|
|
namespace krikkel::NCursesPtyWindow
|
|
{
|
|
class Window : public NCursesWindow
|
|
{
|
|
public:
|
|
Window(int lines, int columns, int y, int x);
|
|
int add_wch(const cchar_t *character);
|
|
int get_wch(wint_t *character);
|
|
|
|
SingleUserInput readSingleUserInput();
|
|
};
|
|
}
|
|
|
|
#endif /* A2C3FDB7_7A85_4527_BC85_366E14149EB8 */
|