Searched refs:cur_pos (Results 1 – 5 of 5) sorted by relevance
68 static off_t cur_pos; /* transfer position as of last refresh */ variable145 transferred = *counter - (cur_pos ? cur_pos : start_pos); in refresh_progress_meter()146 cur_pos = *counter; in refresh_progress_meter()148 bytes_left = end_pos - cur_pos; in refresh_progress_meter()187 if (end_pos == 0 || cur_pos == end_pos) in refresh_progress_meter()190 percent = ((float)cur_pos / end_pos) * 100; in refresh_progress_meter()193 xextendf(&buf, NULL, " %3d%% %s %s/s ", percent, format_size(cur_pos), in refresh_progress_meter()254 cur_pos = 0; in start_progress_meter()276 if (cur_pos != end_pos) in stop_progress_meter()
123 u_int8_t *cur_pos = dst; in cam_strvis() local129 *cur_pos++ = '\\'; in cam_strvis()130 *cur_pos++ = ((*src & 0300) >> 6) + '0'; in cam_strvis()131 *cur_pos++ = ((*src & 0070) >> 3) + '0'; in cam_strvis()132 *cur_pos++ = ((*src & 0007) >> 0) + '0'; in cam_strvis()134 *cur_pos++ = '?'; in cam_strvis()138 *cur_pos++ = *src; in cam_strvis()142 dstlen -= cur_pos - dst; in cam_strvis()143 dst = cur_pos; in cam_strvis()
303 char *cur_pos = dst; in cam_strvis() local309 *cur_pos++ = '\\'; in cam_strvis()310 *cur_pos++ = ((*src & 0300) >> 6) + '0'; in cam_strvis()311 *cur_pos++ = ((*src & 0070) >> 3) + '0'; in cam_strvis()312 *cur_pos++ = ((*src & 0007) >> 0) + '0'; in cam_strvis()314 *cur_pos++ = '?'; in cam_strvis()318 *cur_pos++ = *src; in cam_strvis()322 dstlen -= cur_pos - dst; in cam_strvis()323 dst = cur_pos; in cam_strvis()
1421 char *cur_pos = current; in get_line() local1425 if (cur_pos == last) { in get_line()1429 cur_pos = screen; in get_line()1431 if (*cur_pos == '\0') in get_line()1432 *cur_pos = ' '; in get_line()1433 } while ((*buffer++ = *cur_pos++) != '\n'); in get_line()1435 current = cur_pos; in get_line()
1148 int cur_pos, prompt_len = 0, region_start = 0, region_end = 0; in so_write() local1179 cur_pos = CursorV * TermH + CursorH; in so_write()1181 cur_pos >= region_start && cur_pos < region_end) in so_write()1183 else if (highlighting && cur_pos >= region_end) in so_write()1188 if (highlighting && cur_pos == (Cursor - InputBuf) + prompt_len) in so_write()