Searched refs:pwidth (Results 1 – 4 of 4) sorted by relevance
| /openbsd-src/usr.bin/less/ |
| H A D | cmdbuf.c | 155 cmd_step_common(char *p, LWCHAR ch, int len, int *pwidth, int *bswidth) in cmd_step_common() argument 161 if (pwidth != NULL || bswidth != NULL) { in cmd_step_common() 163 if (pwidth != NULL) in cmd_step_common() 164 *pwidth = prlen; in cmd_step_common() 170 if (pwidth != NULL || bswidth != NULL) { in cmd_step_common() 172 if (pwidth != NULL) in cmd_step_common() 173 *pwidth = 0; in cmd_step_common() 178 if (pwidth != NULL) in cmd_step_common() 179 *pwidth = prlen; in cmd_step_common() 183 if (pwidth != NULL) in cmd_step_common() [all …]
|
| H A D | line.c | 374 pwidth(wchar_t ch, int a, wchar_t prev_ch) in pwidth() function 448 width = pwidth(ch, attr[curr], prev_ch); in backc() 534 w = pwidth(ch, a, prev_ch); in store_char() 588 if (column + to_tab - 1 + pwidth(' ', attr, 0) + in store_tab() 614 pwidth(' ', binattr, 0) + attr_ewidth(binattr) > sc_width) in store_prchar() 854 pwidth(' ', binattr, 0) + attr_ewidth(binattr) > sc_width) in do_append()
|
| /openbsd-src/bin/ksh/ |
| H A D | vi.c | 1362 static int pwidth; /* display columns needed for prompt */ variable 1439 cur_col = pwidth = promptlen(prompt, &p); in edit_reset() 1441 if (pwidth > x_cols - 3 - MIN_EDIT_SPACE) { in edit_reset() 1443 prompt_trunc = pwidth - cur_col; in edit_reset() 1444 pwidth -= prompt_trunc; in edit_reset() 1454 winwidth = x_cols - pwidth - 3; in edit_reset() 1760 cur_col = pwidth; in redraw_line() 1850 ncol = col + pwidth; in display() 1879 ncol = col + pwidth - 1; in display() 1883 ncol = col + pwidth; in display() [all …]
|
| /openbsd-src/usr.bin/tmux/ |
| H A D | status.c | 734 u_int pwidth, u_int *width, struct grid_cell *gc, in status_prompt_redraw() 743 if (*width >= offset + pwidth) in status_prompt_redraw() 746 if (*width > offset + pwidth) in status_prompt_redraw() 767 struct screen_write_ctx *ctx, u_int offset, u_int pwidth, u_int *width, in status_prompt_redraw() 774 return (status_prompt_redraw_character(ctx, offset, pwidth, in status_prompt_redraw() 789 u_int pcursor, pwidth, promptline; in status_prompt_redraw() 837 pwidth = utf8_strwidth(c->prompt_buffer, -1); 839 pwidth++; in status_prompt_translate_key() 846 pwidth = left; in status_prompt_translate_key() 849 if (pwidth > lef in status_prompt_translate_key() 722 u_int pcursor, pwidth, promptline; status_prompt_redraw() local [all...] |