tyfuzz needs termpty_resize_tabs()
This commit is contained in:
parent
6821c94a1c
commit
387cafa463
|
@ -347,8 +347,8 @@ _limit_coord(Termpty *ty)
|
||||||
TERMPTY_RESTRICT_FIELD(ty->cursor_save[1].cy, 0, ty->h);
|
TERMPTY_RESTRICT_FIELD(ty->cursor_save[1].cy, 0, ty->h);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
void
|
||||||
_termpty_resize_tabs(Termpty *ty, int old_w, int new_w)
|
termpty_resize_tabs(Termpty *ty, int old_w, int new_w)
|
||||||
{
|
{
|
||||||
unsigned int *new_tabs;
|
unsigned int *new_tabs;
|
||||||
int i;
|
int i;
|
||||||
|
@ -442,7 +442,7 @@ termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd,
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
_termpty_resize_tabs(ty, 0, w);
|
termpty_resize_tabs(ty, 0, w);
|
||||||
|
|
||||||
termpty_reset_state(ty);
|
termpty_reset_state(ty);
|
||||||
|
|
||||||
|
@ -1272,7 +1272,7 @@ termpty_resize(Termpty *ty, int new_w, int new_h)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_termpty_resize_tabs(ty, old_w, new_w);
|
termpty_resize_tabs(ty, old_w, new_w);
|
||||||
|
|
||||||
if (effective_old_h <= ty->cursor_state.cy)
|
if (effective_old_h <= ty->cursor_state.cy)
|
||||||
effective_old_h = ty->cursor_state.cy + 1;
|
effective_old_h = ty->cursor_state.cy + 1;
|
||||||
|
|
|
@ -236,6 +236,7 @@ Termcell *termpty_cellrow_get(Termpty *ty, int y, ssize_t *wret);
|
||||||
ssize_t termpty_row_length(Termpty *ty, int y);
|
ssize_t termpty_row_length(Termpty *ty, int y);
|
||||||
void termpty_write(Termpty *ty, const char *input, int len);
|
void termpty_write(Termpty *ty, const char *input, int len);
|
||||||
void termpty_resize(Termpty *ty, int new_w, int new_h);
|
void termpty_resize(Termpty *ty, int new_w, int new_h);
|
||||||
|
void termpty_resize_tabs(Termpty *ty, int old_w, int new_w);
|
||||||
void termpty_backlog_size_set(Termpty *ty, size_t size);
|
void termpty_backlog_size_set(Termpty *ty, size_t size);
|
||||||
ssize_t termpty_backlog_length(Termpty *ty);
|
ssize_t termpty_backlog_length(Termpty *ty);
|
||||||
void termpty_backscroll_adjust(Termpty *ty, int *scroll);
|
void termpty_backscroll_adjust(Termpty *ty, int *scroll);
|
||||||
|
|
|
@ -65,6 +65,7 @@ _termpty_init(Termpty *ty)
|
||||||
ty->w = 80;
|
ty->w = 80;
|
||||||
ty->h = 25;
|
ty->h = 25;
|
||||||
ty->backsize = 50;
|
ty->backsize = 50;
|
||||||
|
termpty_resize_tabs(ty, 0, ty->w);
|
||||||
termpty_reset_state(ty);
|
termpty_reset_state(ty);
|
||||||
ty->screen = calloc(1, sizeof(Termcell) * ty->w * ty->h);
|
ty->screen = calloc(1, sizeof(Termcell) * ty->w * ty->h);
|
||||||
ty->screen2 = calloc(1, sizeof(Termcell) * ty->w * ty->h);
|
ty->screen2 = calloc(1, sizeof(Termcell) * ty->w * ty->h);
|
||||||
|
|
Loading…
Reference in New Issue