version 1.40, 2013/03/25 11:41:44 |
version 1.41, 2013/05/31 18:03:44 |
|
|
int vtputs(const char *); |
int vtputs(const char *); |
void vteeol(void); |
void vteeol(void); |
void updext(int, int); |
void updext(int, int); |
void modeline(struct mgwin *); |
void modeline(struct mgwin *, int); |
void setscores(int, int); |
void setscores(int, int); |
void traceback(int, int, int, int); |
void traceback(int, int, int, int); |
void ucopy(struct video *, struct video *); |
void ucopy(struct video *, struct video *); |
|
|
* virtual and physical screens the same. |
* virtual and physical screens the same. |
*/ |
*/ |
void |
void |
update(void) |
update(int modelinecolor) |
{ |
{ |
struct line *lp; |
struct line *lp; |
struct mgwin *wp; |
struct mgwin *wp; |
|
|
} |
} |
} |
} |
if ((wp->w_rflag & WFMODE) != 0) |
if ((wp->w_rflag & WFMODE) != 0) |
modeline(wp); |
modeline(wp, modelinecolor); |
wp->w_rflag = 0; |
wp->w_rflag = 0; |
wp->w_frame = 0; |
wp->w_frame = 0; |
} |
} |
|
|
* characters may never be seen. |
* characters may never be seen. |
*/ |
*/ |
void |
void |
modeline(struct mgwin *wp) |
modeline(struct mgwin *wp, int modelinecolor) |
{ |
{ |
int n, md; |
int n, md; |
struct buffer *bp; |
struct buffer *bp; |
|
|
int len; |
int len; |
|
|
n = wp->w_toprow + wp->w_ntrows; /* Location. */ |
n = wp->w_toprow + wp->w_ntrows; /* Location. */ |
vscreen[n]->v_color = CMODE; /* Mode line color. */ |
vscreen[n]->v_color = modelinecolor; /* Mode line color. */ |
vscreen[n]->v_flag |= (VFCHG | VFHBAD); /* Recompute, display. */ |
vscreen[n]->v_flag |= (VFCHG | VFHBAD); /* Recompute, display. */ |
vtmove(n, 0); /* Seek to right line. */ |
vtmove(n, 0); /* Seek to right line. */ |
bp = wp->w_bufp; |
bp = wp->w_bufp; |