Lines Matching refs:tp

1698     char_u	    *tp = tstrbuf;  in get_term_entries()  local
1708 TERM_STR(string_names[i].dest) = TGETSTR(string_names[i].name, &tp); in get_term_entries()
1736 p = TGETSTR(key_names[i], &tp); in get_term_entries()
1762 BC = (char *)TGETSTR("bc", &tp); in get_term_entries()
1763 UP = (char *)TGETSTR("up", &tp); in get_term_entries()
1764 p = TGETSTR("pc", &tp); in get_term_entries()
2298 char_u *tp = tstrbuf; in add_termcap_entry() local
2371 string = TGETSTR((char *)name, &tp); in add_termcap_entry()
4598 handle_u7_response(int *arg, char_u *tp UNUSED, int csi_len UNUSED) in handle_u7_response()
4604 LOG_TR(("Received U7 status: %s", tp)); in handle_u7_response()
4627 set_vim_var_string(VV_TERMU7RESP, tp, csi_len); in handle_u7_response()
4635 LOG_TR(("Received compatibility test result: %s", tp)); in handle_u7_response()
4653 handle_version_response(int first, int *arg, int argc, char_u *tp) in handle_version_response() argument
4659 LOG_TR(("Received CRV response: %s", tp)); in handle_version_response()
4676 if (tp[0] == CSI) in handle_version_response()
4946 char_u *tp, in handle_csi() argument
4970 if (ap >= tp + len) in handle_csi()
4979 if (ap >= tp + len) in handle_csi()
4996 while (ap < tp + len in handle_csi()
5000 if (ap >= tp + len) in handle_csi()
5003 csi_len = (int)(ap - tp) + 1; in handle_csi()
5012 handle_u7_response(arg, tp, csi_len); in handle_csi()
5023 handle_version_response(first, arg, argc, tp); in handle_csi()
5027 set_vim_var_string(VV_TERMRESPONSE, tp, *slen); in handle_csi()
5049 LOG_TR(("Received cursor blinking mode response: %s", tp)); in handle_csi()
5054 set_vim_var_string(VV_TERMBLINKRESP, tp, *slen); in handle_csi()
5103 handle_osc(char_u *tp, char_u *argp, int len, char_u *key_name, int *slen) in handle_osc() argument
5107 j = 1 + (tp[0] == ESC); in handle_osc()
5114 if (tp[i] == '\007' || (tp[0] == OSC ? tp[i] == STERM in handle_osc()
5115 : (tp[i] == ESC && i + 1 < len && tp[i + 1] == '\\'))) in handle_osc()
5118 int is_4digit = i - j >= 21 && tp[j + 11] == '/' in handle_osc()
5119 && tp[j + 16] == '/'; in handle_osc()
5121 if (i - j >= 15 && STRNCMP(tp + j + 3, "rgb:", 4) == 0 in handle_osc()
5123 || (tp[j + 9] == '/' && tp[i + 12 == '/']))) in handle_osc()
5125 char_u *tp_r = tp + j + 7; in handle_osc()
5126 char_u *tp_g = tp + j + (is_4digit ? 12 : 10); in handle_osc()
5127 char_u *tp_b = tp + j + (is_4digit ? 17 : 13); in handle_osc()
5140 LOG_TR(("Received RBG response: %s", tp)); in handle_osc()
5160 LOG_TR(("Received RFG response: %s", tp)); in handle_osc()
5172 *slen = i + 1 + (tp[i] == ESC); in handle_osc()
5175 : VV_TERMRFGRESP, tp, *slen); in handle_osc()
5204 handle_dcs(char_u *tp, char_u *argp, int len, char_u *key_name, int *slen) in handle_dcs() argument
5208 j = 1 + (tp[0] == ESC); in handle_dcs()
5217 if ((tp[i] == ESC && i + 1 < len && tp[i + 1] == '\\') in handle_dcs()
5218 || tp[i] == STERM) in handle_dcs()
5221 got_code_from_term(tp + j, i); in handle_dcs()
5224 *slen = i + 1 + (tp[i] == ESC); in handle_dcs()
5235 if (i - j == 3 && !isdigit(tp[i])) in handle_dcs()
5237 if (i - j == 4 && tp[i] != ' ') in handle_dcs()
5239 if (i - j == 5 && tp[i] != 'q') in handle_dcs()
5241 if (i - j == 6 && tp[i] != ESC && tp[i] != STERM) in handle_dcs()
5243 if ((i - j == 6 && tp[i] == STERM) in handle_dcs()
5244 || (i - j == 7 && tp[i] == '\\')) in handle_dcs()
5258 LOG_TR(("Received cursor shape response: %s", tp)); in handle_dcs()
5264 set_vim_var_string(VV_TERMSTYLERESP, tp, *slen); in handle_dcs()
5302 char_u *tp; in check_termcode() local
5341 tp = typebuf.tb_buf + typebuf.tb_off + offset; in check_termcode()
5348 tp = buf + offset; in check_termcode()
5356 if (*tp == K_SPECIAL) in check_termcode()
5367 i = *tp; in check_termcode()
5377 if (*tp == ESC && !p_ek && (State & INSERT)) in check_termcode()
5390 if (*tp == CSI) // Special key from GUI in check_termcode()
5395 key_name[0] = tp[1]; in check_termcode()
5396 key_name[1] = tp[2]; in check_termcode()
5416 if (STRNCMP(termcodes[idx].code, tp, in check_termcode()
5448 && !isdigit(tp[2])) 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()
5488 else if (tp[modslen] != ';' && modslen == slen - 3) in check_termcode()
5491 else if (at_code && tp[modslen] != '1') in check_termcode()
5499 for (j = slen - 2; j < len && (isdigit(tp[j]) in check_termcode()
5500 || tp[j] == '-' || tp[j] == ';'); ++j) in check_termcode()
5505 if (tp[j - 1] != termcodes[idx].code[slen - 1]) in check_termcode()
5508 modifiers_start = tp + slen - 2; in check_termcode()
5542 char_u *argp = tp[0] == ESC ? tp + 2 : tp + 1; in check_termcode()
5562 if (((tp[0] == ESC && len >= 3 && tp[1] == '[') in check_termcode()
5563 || (tp[0] == CSI && len >= 2)) in check_termcode()
5566 int resp = handle_csi(tp, len, argp, offset, buf, in check_termcode()
5581 && ((tp[0] == ESC && len >= 2 && tp[1] == ']') in check_termcode()
5582 || tp[0] == OSC)) in check_termcode()
5584 if (handle_osc(tp, argp, len, key_name, &slen) == FAIL) in check_termcode()
5591 && ((tp[0] == ESC && len >= 2 && tp[1] == 'P') in check_termcode()
5592 || tp[0] == DCS)) in check_termcode()
5594 if (handle_dcs(tp, argp, len, key_name, &slen) == FAIL) in check_termcode()
5621 int num_bytes = get_bytes_from_buf(tp + slen, bytes, 4); in check_termcode()
5659 if (check_termcode_mouse(tp, &slen, key_name, modifiers_start, idx, in check_termcode()
5687 int num_bytes = get_long_from_buf(tp + slen, &val); in check_termcode()
5708 int num_bytes = get_bytes_from_buf(tp + slen, bytes, 1); in check_termcode()
5721 int num_bytes = get_bytes_from_buf(tp + slen, bytes, 2); in check_termcode()
5739 for (i = 0; tp[j] == CSI && tp[j + 1] == KS_VER_SCROLLBAR in check_termcode()
5740 && tp[j + 2] != NUL; ++i) in check_termcode()
5743 num_bytes = get_bytes_from_buf(tp + j, bytes, 1); in check_termcode()
5751 num_bytes = get_long_from_buf(tp + j, &val); in check_termcode()
5768 for (i = 0; tp[j] == CSI && tp[j + 1] == KS_HOR_SCROLLBAR in check_termcode()
5769 && tp[j + 2] != NUL; ++i) in check_termcode()
5772 num_bytes = get_long_from_buf(tp + j, &val); in check_termcode()