38 friend std::ostream & operator<<( std::ostream & str,
const NCTextPad & obj );
45 std::list<unsigned> lines;
46 std::list<unsigned>::iterator cline;
51 void cursor(
bool on );
52 void cursorOn() { cursor(
true ); }
54 void cursorOff() { cursor(
false ); }
56 bool insert( wint_t key );
57 bool delch(
bool previous =
false );
60 void assertSze(
wsze minsze );
61 void assertWidth(
unsigned minw );
62 void assertHeight(
unsigned minh );
69 virtual int setpos(
const wpos & newpos );
78 virtual void resize(
wsze nsze );
80 virtual wpos CurPos()
const;
81 virtual bool handleInput( wint_t key );
83 void setText(
const NCtext & ntext );
84 std::wstring getText()
const;
88 void setInputMaxLength(
int nr );
static int cols()
Number of cols on terminal, not window.
int delch()
Delete character under the cursor.