Lines Matching refs:vt
43 VTerm *vt; member
82 …ScreenCell *new_buffer = vterm_allocator_malloc(screen->vt, sizeof(ScreenCell) * new_rows * new_co… in realloc_buffer()
98 vterm_allocator_free(screen->vt, buffer); in realloc_buffer()
522 vterm_allocator_free(screen->vt, screen->sb_buffer); in resize()
524 screen->sb_buffer = vterm_allocator_malloc(screen->vt, sizeof(VTermScreenCell) * new_cols); in resize()
624 static VTermScreen *screen_new(VTerm *vt) in screen_new() argument
626 VTermState *state = vterm_obtain_state(vt); in screen_new()
630 VTermScreen *screen = vterm_allocator_malloc(vt, sizeof(VTermScreen)); in screen_new()
633 vterm_get_size(vt, &rows, &cols); in screen_new()
635 screen->vt = vt; in screen_new()
649 screen->sb_buffer = vterm_allocator_malloc(screen->vt, sizeof(VTermScreenCell) * cols); in screen_new()
658 vterm_allocator_free(screen->vt, screen->buffers[0]); in vterm_screen_free()
660 vterm_allocator_free(screen->vt, screen->buffers[1]); in vterm_screen_free()
662 vterm_allocator_free(screen->vt, screen->sb_buffer); in vterm_screen_free()
664 vterm_allocator_free(screen->vt, screen); in vterm_screen_free()
814 VTermScreen *vterm_obtain_screen(VTerm *vt) in vterm_obtain_screen() argument
816 if(vt->screen) in vterm_obtain_screen()
817 return vt->screen; in vterm_obtain_screen()
819 VTermScreen *screen = screen_new(vt); in vterm_obtain_screen()
820 vt->screen = screen; in vterm_obtain_screen()
830 vterm_get_size(screen->vt, &rows, &cols); in vterm_screen_enable_altscreen()