#include <cursesui.h>
Public Member Functions | |
| cursesui () | |
| ~cursesui () | |
Private Member Functions | |
| bool | startncurses () |
| void | endncurses () |
| void | eventsloop () |
Private Attributes | |
| crect | _termgeometry |
Friends | |
| class | stdapp |
Definition at line 34 of file cursesui.h.
|
|
Definition at line 28 of file cursesui.cpp. 00029 {
00030 }
|
|
|
Definition at line 33 of file cursesui.cpp. 00034 {
00035 }
|
|
|
Definition at line 64 of file cursesui.cpp. 00065 {
00066 endwin();
00067 }
|
|
|
Definition at line 73 of file cursesui.cpp. 00074 {
00075 int kevent;
00076 bool meta = false;
00077 for(;;) {
00078 meta = false;
00079 kevent = getch();
00080 if( kevent == 27 ) { // meta key candiate...
00081 kevent = getch();
00082 if(kevent != 27 ) meta = true;
00083 }
00084 //stdapp::signal_keyevent(kevent,true);
00085 }
00086 }
|
|
|
Definition at line 44 of file cursesui.cpp. References _termgeometry. 00045 {
00046 if(! initscr() ) return false;
00047 int sw,sh;
00048 raw(); // want all inputs now;
00049 noecho(); // .... no comments :-)
00050 curs_set(0);
00051 keypad(stdscr,true);
00052 meta(stdscr, true);
00053 halfdelay(1);
00054 mousemask(ALL_MOUSE_EVENTS|REPORT_MOUSE_POSITION, NULL);
00055 getmaxyx(stdscr, sh, sw);
00056 _termgeometry.assign(0,0, sw, sh);
00057 stdcolor::init();
00058 }
|
|
|
Definition at line 40 of file cursesui.h. |
|
|
Definition at line 46 of file cursesui.h. Referenced by startncurses(). |
1.4.0