Lines Matching refs:b_term

546     curbuf->b_term = term;  in term_start()
945 term_T *term = wp->w_buffer->b_term; in term_write_session()
1002 term_T *term = buf->b_term; in term_should_restore()
1040 term_T *term = buf->b_term; in free_terminal()
1068 buf->b_term = NULL; in free_terminal()
1204 term_T *term = buffer->b_term; in write_to_term()
1248 if (buffer == curbuf && curbuf->b_term != NULL) in write_to_term()
1249 update_cursor(curbuf->b_term, TRUE); in write_to_term()
1611 char *how = (char *)buf->b_term->tl_kill; in term_try_stop_job()
1631 job_stop(buf->b_term->tl_job, NULL, how); in term_try_stop_job()
1640 || buf->b_term == NULL in term_try_stop_job()
1641 || buf->b_term->tl_job == NULL) in term_try_stop_job()
1643 job = buf->b_term->tl_job; in term_try_stop_job()
2040 term_T *term = curbuf->b_term; in term_enter_normal_mode()
2067 term_T *term = curbuf->b_term; in term_in_normal_mode()
2079 term_T *term = curbuf->b_term; in term_enter_job_mode()
2103 vterm_is_modify_other_keys(curbuf->b_term->tl_vterm); in term_vgetc()
2296 channel_send(curbuf->b_term->tl_job->jv_channel, PART_IN, in term_paste_register()
2304 channel_send(curbuf->b_term->tl_job->jv_channel, PART_IN, in term_paste_register()
2451 term_T *term = curbuf->b_term; in term_use_loop_check()
2476 term_T *term = curbuf->b_term; in term_win_entered()
2512 if (c < 0x20 && vterm_is_modify_other_keys(curbuf->b_term->tl_vterm)) in ctrl_to_raw_c()
2537 int tty_fd = curbuf->b_term->tl_job->jv_channel in terminal_loop()
2538 ->ch_part[get_tty_part(curbuf->b_term)].ch_fd; in terminal_loop()
2546 in_terminal_loop = curbuf->b_term; in terminal_loop()
2554 position_cursor(curwin, &curbuf->b_term->tl_cursor_pos); in terminal_loop()
2555 may_set_cursor_props(curbuf->b_term); in terminal_loop()
2560 if (curbuf->b_term != NULL && !curbuf->b_term->tl_system) in terminal_loop()
2567 if (!term_use_loop_check(TRUE) || in_terminal_loop != curbuf->b_term) in terminal_loop()
2571 update_cursor(curbuf->b_term, FALSE); in terminal_loop()
2575 if (!term_use_loop_check(TRUE) || in_terminal_loop != curbuf->b_term) in terminal_loop()
2607 mch_signal_job(curbuf->b_term->tl_job, (char_u *)"kill"); in terminal_loop()
2613 && !curbuf->b_term->tl_system in terminal_loop()
2632 || in_terminal_loop != curbuf->b_term) in terminal_loop()
2647 send_keys_to_term(curbuf->b_term, prev_raw_c, prev_mod_mask, in terminal_loop()
2653 mch_signal_job(curbuf->b_term->tl_job, (char_u *)"kill"); in terminal_loop()
2704 if (send_keys_to_term(curbuf->b_term, raw_c, mod_mask, TRUE) != OK) in terminal_loop()
2724 if (curbuf->b_term != NULL && !curbuf->b_term->tl_normal_mode) in terminal_loop()
2725 may_move_terminal_to_buffer(curbuf->b_term, FALSE); in terminal_loop()
3088 if (term == curbuf->b_term) in handle_settermprop()
3447 if (popup_is_popup(curwin) && curbuf->b_term != NULL in may_close_term_popup()
3448 && !term_job_running(curbuf->b_term)) in may_close_term_popup()
3511 term = curbuf->b_term; in term_channel_closed()
3700 term_T *term = wp->w_buffer->b_term; in term_do_update_window()
3711 term_T *term = wp->w_buffer->b_term; in term_update_window()
3823 return buf->b_term != NULL && buf->b_term->tl_vterm == NULL; in term_is_finished()
3833 term_T *term = buf->b_term; in term_show_buffer()
3845 term_T *term = curbuf->b_term; in term_change_in_curbuf()
3867 term_T *term = buf->b_term; in term_get_attr()
4702 if (buf == NULL || buf->b_term == NULL) in term_get_buf()
4787 term = buf->b_term; in f_term_dumpwrite()
4989 term_T *term = curbuf->b_term; in read_dump_file()
5348 free_scrollback(curbuf->b_term); in term_load_dump()
5356 if (buf != NULL && buf->b_term != NULL) in term_load_dump()
5361 term_T *term = buf->b_term; in term_load_dump()
5545 term_T *term = curbuf->b_term; in term_swap_diff()
5689 rettv->vval.v_number = buf->b_term->tl_using_altscreen; in f_term_getaltscreen()
5753 term = buf->b_term; in f_term_getcursor()
5791 rettv->vval.v_job = buf->b_term->tl_job; in f_term_getjob()
5826 term = buf->b_term; in f_term_getline()
5874 rettv->vval.v_number = buf->b_term->tl_scrollback_scrolled; in f_term_getscrolled()
5897 list_append_number(l, buf->b_term->tl_rows); in f_term_getsize()
5898 list_append_number(l, buf->b_term->tl_cols); in f_term_getsize()
5923 if (buf->b_term->tl_vterm == NULL) in f_term_setsize()
5925 term = buf->b_term; in f_term_setsize()
5956 term = buf->b_term; in f_term_getstatus()
5984 if (buf->b_term->tl_title != NULL) in f_term_gettitle()
5985 rettv->vval.v_string = vim_strsave(buf->b_term->tl_title); in f_term_gettitle()
6013 if (buf->b_term->tl_job != NULL) in f_term_gettty()
6014 p = buf->b_term->tl_job->jv_tty_out; in f_term_gettty()
6017 if (buf->b_term->tl_job != NULL) in f_term_gettty()
6018 p = buf->b_term->tl_job->jv_tty_in; in f_term_gettty()
6073 term = buf->b_term; in f_term_scrape()
6189 term = buf->b_term; in f_term_sendkeys()
6235 term = buf->b_term; in f_term_getansicolors()
6268 term = buf->b_term; in f_term_setansicolors()
6301 term = buf->b_term; in f_term_setapi()
6329 term = buf->b_term; in f_term_setrestore()
6357 term = buf->b_term; in f_term_setkill()
6395 if (buf != NULL && buf->b_term != NULL) in f_term_start()
6415 if (buf->b_term->tl_job == NULL) in f_term_wait()
6420 if (buf->b_term->tl_job->jv_channel == NULL) in f_term_wait()
6425 if (!buf->b_term->tl_job->jv_channel->ch_keep_open in f_term_wait()
6426 && STRCMP(job_status(buf->b_term->tl_job), "dead") == 0) in f_term_wait()
6432 while (buf->b_term != NULL && !buf->b_term->tl_channel_closed) in f_term_wait()