version 1.15, 2009/10/27 23:59:44 |
version 1.16, 2010/08/12 23:31:29 |
|
|
xwin_t his_win; |
xwin_t his_win; |
WINDOW *line_win; |
WINDOW *line_win; |
|
|
int curses_initialized = 0; |
int curses_initialized; |
int high_print = 0; |
int high_print; |
bool smooth_scroll = FALSE; |
bool smooth_scroll; |
|
|
/* |
/* |
* max HAS to be a function, it is called with |
* max HAS to be a function, it is called with |
* a argument of the form --foo at least once. |
* an argument of the form --foo at least once. |
*/ |
*/ |
int |
int |
max(a,b) |
max(int a, int b) |
int a, b; |
|
{ |
{ |
|
|
return (a > b ? a : b); |
return (a > b ? a : b); |
|
|
* characters while we are at it. |
* characters while we are at it. |
*/ |
*/ |
void |
void |
display(win, text, size) |
display(xwin_t *win, char *text, int size) |
xwin_t *win; |
|
char *text; |
|
int size; |
|
{ |
{ |
int i; |
int i; |
char cch; |
char cch; |
|
|
* Read the character at the indicated position in win |
* Read the character at the indicated position in win |
*/ |
*/ |
int |
int |
readwin(win, line, col) |
readwin(WINDOW *win, int line, int col) |
WINDOW *win; |
|
int line, col; |
|
{ |
{ |
int oldline, oldcol; |
int oldline, oldcol; |
int c; |
int c; |
|
|
* so that the current position is obvious |
* so that the current position is obvious |
*/ |
*/ |
void |
void |
xscroll(win, flag) |
xscroll(xwin_t *win, int flag) |
xwin_t *win; |
|
int flag; |
|
{ |
{ |
|
|
if (flag == -1) { |
if (flag == -1) { |