Lines Matching refs:code
82 static void got_code_from_term(char_u *code, int len);
4177 char_u *code; // terminal code (in allocated memory) member
4185 static int termcode_star(char_u *code, int len);
4191 vim_free(termcodes[--tc_len].code); in clear_termcodes()
4302 termcodes[i].code, termcodes[i].len)) > 0) in add_termcode()
4307 && STRNCMP(s, termcodes[i].code, len - 1) == 0 in add_termcode()
4309 == termcodes[i].code[termcodes[i].len - 1]) in add_termcode()
4319 vim_free(termcodes[i].code); in add_termcode()
4335 termcodes[i].code = s; in add_termcode()
4346 if (termcodes[i].code[termcodes[i].modlen - 1] == '@') in add_termcode()
4358 termcode_star(char_u *code, int len) in termcode_star() argument
4361 if (len >= 3 && code[len - 2] == '*') in termcode_star()
4363 if (len >= 5 && code[len - 3] == ';') in termcode_star()
4378 return termcodes[i].code; in find_termcode()
4423 vim_free(termcodes[idx].code); in del_termcode_idx()
4445 c = term_7to8bit(termcodes[i].code); in switch_to_8bit()
4448 STRMOVE(termcodes[i].code + 1, termcodes[i].code + 2); in switch_to_8bit()
4449 termcodes[i].code[0] = c; in switch_to_8bit()
4558 int code = n - 1; in decode_modifiers() local
4561 if (code & 1) in decode_modifiers()
4563 if (code & 2) in decode_modifiers()
4565 if (code & 4) in decode_modifiers()
4567 if (code & 8) in decode_modifiers()
5416 if (STRNCMP(termcodes[idx].code, tp, in check_termcode()
5433 STRNCMP(termcodes[idx].code, in check_termcode()
5434 termcodes[j].code, slen) == 0) in check_termcode()
5446 && termcodes[idx].code[0] == ESC in check_termcode()
5447 && termcodes[idx].code[1] == '[' in check_termcode()
5476 at_code = termcodes[idx].code[modslen] == '@'; in check_termcode()
5477 if (STRNCMP(termcodes[idx].code, tp, in check_termcode()
5485 if (tp[modslen] == termcodes[idx].code[slen - 1]) in check_termcode()
5505 if (tp[j - 1] != termcodes[idx].code[slen - 1]) in check_termcode()
6149 && STRNCMP(termcodes[i].code, src, (size_t)slen) == 0) in find_term_bykeys()
6177 if (vim_strchr(termleader, termcodes[i].code[0]) == NULL) in gather_termleader()
6179 termleader[len++] = termcodes[i].code[0]; in gather_termleader()
6230 termcodes[i].code, FALSE); in show_termcodes()
6259 termcodes[items[i]].code, TRUE); in show_termcodes()
6277 show_one_termcode(char_u *name, char_u *code, int printit) in show_one_termcode() argument
6308 if (code == NULL) in show_one_termcode()
6311 len += vim_strsize(code); in show_one_termcode()
6316 if (code == NULL) in show_one_termcode()
6319 msg_outtrans(code); in show_one_termcode()
6378 got_code_from_term(char_u *code, int len) in got_code_from_term() argument
6390 if (code[0] == '1' && code[7] == '=' && len / 2 < XT_LEN) in got_code_from_term()
6393 name[0] = hexhex2nr(code + 3); in got_code_from_term()
6394 name[1] = hexhex2nr(code + 5); in got_code_from_term()
6409 for (i = 8; (c = hexhex2nr(code + i)) >= 0; i += 2) in got_code_from_term()
6513 int code; // value of KS_ member
6551 int code) in find_first_tcap() argument
6556 if (p->bt_entry == code) in find_first_tcap()
6584 for (ks = ks_tbl; ks->code != (int)KS_NAME; ks++) in swap_tcap()
6586 bt = find_first_tcap(DEFAULT_TERM, ks->code); in swap_tcap()
6608 for (ks = ks_tbl; ks->code != (int)KS_NAME; ks++) in swap_tcap()
6610 bt = find_first_tcap(DEFAULT_TERM, ks->code); in swap_tcap()
6629 for (ks = ks_tbl; ks->code != (int)KS_NAME; ks++) in swap_tcap()
6631 bt = find_first_tcap(DEFAULT_TERM, ks->code); in swap_tcap()