| [9] | 1 | #include <curses.h> | 
|---|
|  | 2 | #include "curspriv.h" | 
|---|
|  | 3 |  | 
|---|
|  | 4 | static bool hasold = FALSE;     /* for remembering old cursor type */ | 
|---|
|  | 5 | static int oldmode; | 
|---|
|  | 6 |  | 
|---|
|  | 7 | /****************************************************************/ | 
|---|
|  | 8 | /* Idlok() is used to set  flag for using the terminal insert/  */ | 
|---|
|  | 9 | /* Delete line capabilities. This is not relevant for the PC    */ | 
|---|
|  | 10 | /* Version of curses, and thus nothing is done.                 */ | 
|---|
|  | 11 | /****************************************************************/ | 
|---|
|  | 12 | void idlok(win, flag) | 
|---|
|  | 13 | WINDOW *win; | 
|---|
|  | 14 | bool flag; | 
|---|
|  | 15 | { | 
|---|
|  | 16 | } | 
|---|
|  | 17 |  | 
|---|
|  | 18 | /****************************************************************/ | 
|---|
|  | 19 | /* Clearok() marks window 'win' to cause screen clearing and    */ | 
|---|
|  | 20 | /* Redraw the next time a refresh is done.                      */ | 
|---|
|  | 21 | /****************************************************************/ | 
|---|
|  | 22 | void clearok(win, flag) | 
|---|
|  | 23 | WINDOW *win; | 
|---|
|  | 24 | bool flag; | 
|---|
|  | 25 | { | 
|---|
|  | 26 | if (win == curscr) | 
|---|
|  | 27 | _cursvar.tmpwin->_clear = flag; | 
|---|
|  | 28 | else | 
|---|
|  | 29 | win->_clear = flag; | 
|---|
|  | 30 | } | 
|---|
|  | 31 |  | 
|---|
|  | 32 | /****************************************************************/ | 
|---|
|  | 33 | /* Leaveok() marks window 'win' to allow the update routines    */ | 
|---|
|  | 34 | /* To leave the hardware cursor where it happens to be at the   */ | 
|---|
|  | 35 | /* End of update. Usually used in combination with cursoff().   */ | 
|---|
|  | 36 | /****************************************************************/ | 
|---|
|  | 37 |  | 
|---|
|  | 38 | void leaveok(win, flag) | 
|---|
|  | 39 | WINDOW *win; | 
|---|
|  | 40 | bool flag; | 
|---|
|  | 41 | { | 
|---|
|  | 42 | win->_leave = flag; | 
|---|
|  | 43 | } | 
|---|
|  | 44 |  | 
|---|
|  | 45 | /****************************************************************/ | 
|---|
|  | 46 | /* Scrollok() marks window 'win' to allow the scrolling region  */ | 
|---|
|  | 47 | /* Of it to actually scroll.                                    */ | 
|---|
|  | 48 | /****************************************************************/ | 
|---|
|  | 49 | void scrollok(win, flag) | 
|---|
|  | 50 | WINDOW *win; | 
|---|
|  | 51 | bool flag; | 
|---|
|  | 52 | { | 
|---|
|  | 53 | win->_scroll = flag; | 
|---|
|  | 54 | } | 
|---|
|  | 55 |  | 
|---|
|  | 56 | /****************************************************************/ | 
|---|
|  | 57 | /* Nodelay() marks the window to make character input non-      */ | 
|---|
|  | 58 | /* Waiting, i.e. if there is no character to get, -1 will be    */ | 
|---|
|  | 59 | /* Returned.                                                    */ | 
|---|
|  | 60 | /****************************************************************/ | 
|---|
|  | 61 | void nodelay(win, flag) | 
|---|
|  | 62 | WINDOW *win; | 
|---|
|  | 63 | bool flag; | 
|---|
|  | 64 | { | 
|---|
|  | 65 | win->_nodelay = flag; | 
|---|
|  | 66 | } | 
|---|
|  | 67 |  | 
|---|
|  | 68 | /****************************************************************/ | 
|---|
|  | 69 | /* Keypad() marks window 'win' to use the special keypad mode.  */ | 
|---|
|  | 70 | /****************************************************************/ | 
|---|
|  | 71 | void keypad(win, flag) | 
|---|
|  | 72 | WINDOW *win; | 
|---|
|  | 73 | bool flag; | 
|---|
|  | 74 | { | 
|---|
|  | 75 | win->_keypad = flag; | 
|---|
|  | 76 | } | 
|---|
|  | 77 |  | 
|---|
|  | 78 | /****************************************************************/ | 
|---|
|  | 79 | /* Meta() allows use of any alternate character set allowed by  */ | 
|---|
|  | 80 | /* The terminal. We always allow this on the PC, so this one    */ | 
|---|
|  | 81 | /* Does nothing.                                                */ | 
|---|
|  | 82 | /****************************************************************/ | 
|---|
|  | 83 | void meta(win, flag) | 
|---|
|  | 84 | WINDOW *win; | 
|---|
|  | 85 | bool flag; | 
|---|
|  | 86 | { | 
|---|
|  | 87 | } | 
|---|