Lines Matching refs:win_size
75 static int win_size; /* terminal window size */ variable
161 file_len = win_size - 35; in refresh_progress_meter()
178 snprintf(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter()
182 format_size(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter()
184 strlcat(buf, " ", win_size); in refresh_progress_meter()
187 format_rate(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter()
189 strlcat(buf, "/s ", win_size); in refresh_progress_meter()
198 strlcat(buf, "- stalled -", win_size); in refresh_progress_meter()
200 strlcat(buf, " --:-- ETA", win_size); in refresh_progress_meter()
213 snprintf(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter()
216 snprintf(buf + strlen(buf), win_size - strlen(buf), in refresh_progress_meter()
220 strlcat(buf, " ETA", win_size); in refresh_progress_meter()
222 strlcat(buf, " ", win_size); in refresh_progress_meter()
225 atomicio(vwrite, STDOUT_FILENO, buf, win_size - 1); in refresh_progress_meter()
300 win_size = MAX_WINSIZE; in setscreensize()
302 win_size = winsize.ws_col; in setscreensize()
304 win_size = DEFAULT_WINSIZE; in setscreensize()
305 win_size += 1; /* trailing \0 */ in setscreensize()