Remove globals 'li' and 'co' in term.c
These globals were used to store the original terminal dimesions from the terminal database (or in the case of reattaching, supplied by scr-bx) to be applied if the current terminal dimensions could not be determined. Instead, we leave the original terminal dimensions in current_term->TI_lines and current_term->TI_cols, and create current_term->li and current_term->co to store the current terminal dimensions (as eg. supplied by scr-bx).
This commit is contained in:
@@ -639,6 +639,8 @@ struct term_struct {
|
||||
char *TI_memu; /* mu / memu memory unlock */
|
||||
char *TI_box1; /* bx / box1 box characters primary set */
|
||||
/* non termcap/terminfo terminal info (generated by epic) */
|
||||
int co; /* current actual number of columns */
|
||||
int li; /* current actual number of lines */
|
||||
char TI_normal[256];
|
||||
char *TI_sgrstrs[TERM_SGR_MAXVAL];
|
||||
char *TI_forecolors[16];
|
||||
|
||||
Reference in New Issue
Block a user