/dports/misc/py-progressbar2/progressbar2-3.55.0/tests/ |
H A D | test_terminal.py | 14 max_value=100, term_width=20, left_justify=True) 16 assert p.term_width is not None 25 max_value=100, term_width=20, left_justify=False) 27 assert p.term_width is not None 50 assert p.term_width is not None 61 max_value=100, term_width=20) 63 assert p.term_width is not None 72 max_value=100, term_width=20) 74 assert p.term_width is not None 86 term_width=20) [all …]
|
H A D | test_widgets.py | 130 def test_all_widgets_min_width(min_width, term_width): argument 152 p = progressbar.ProgressBar(widgets=widgets, term_width=term_width) 156 if min_width and min_width > term_width: 164 def test_all_widgets_max_width(max_width, term_width): argument 186 p = progressbar.ProgressBar(widgets=widgets, term_width=term_width) 190 if max_width and max_width < term_width:
|
/dports/lang/v/v-0.1.29/vlib/term/ |
H A D | term_test.v | 23 term_width := divider.len 24 assert term_width > 0 52 assert term_width == empty_header.len 53 assert term_width == short_header.len 54 assert term_width == very_long_header.len 55 assert term_width == very_long_header_2.len 56 assert term_width == term.header('1234', '_-/\\/\\').len
|
/dports/devel/p5-Term-ProgressBar/Term-ProgressBar-2.22/lib/Term/ |
H A D | ProgressBar.pm | 279 term_width => undef, 509 $config{term_width} = $__FORCE_TERM; 511 if $config{term_width} < 5; 514 die if $config{term_width} < 5; 518 if ( defined $config{term_width} ) { 520 $config{bar_width} = $config{term_width} - 5; 691 sub term_width { subroutine 693 return $self->{term_width} if not @_; 696 $self->{term_width} = $_[0]; 809 print $fh "\r", ' ' x $self->term_width, "\r"; [all …]
|
/dports/devel/libtecla/libtecla/ |
H A D | ioutil.c | 101 int term_width, int start, const char *string) in _io_display_text() argument 122 if(term_width < 0) in _io_display_text() 123 term_width = 0; in _io_display_text() 124 if(indentation > term_width) in _io_display_text() 125 indentation = term_width; in _io_display_text() 128 if(start > term_width) in _io_display_text() 129 start = term_width; in _io_display_text() 181 for(i=ndone; string[i] && (last+i-ndone < term_width - suffix_len || in _io_display_text() 221 int npad = term_width - suffix_len - last; in _io_display_text()
|
H A D | cplmatch.c | 134 int term_width; /* The width of the terminal (characters) */ member 145 static void cpl_plan_listing(CplMatches *result, int term_width, 617 int cpl_list_completions(CplMatches *result, FILE *fp, int term_width) in cpl_list_completions() argument 637 int term_width) in _cpl_output_completions() argument 644 if(term_width < 1) in _cpl_output_completions() 653 cpl_plan_listing(result, term_width, &fmt); in _cpl_output_completions() 1022 static void cpl_plan_listing(CplMatches *result, int term_width, in cpl_plan_listing() argument 1030 if(term_width < 0) in cpl_plan_listing() 1031 term_width = 0; in cpl_plan_listing() 1036 fmt->term_width = term_width; in cpl_plan_listing() [all …]
|
H A D | expand.c | 134 int term_width; /* The width of the terminal (characters) */ member 145 static void ef_plan_listing(FileExpansion *result, int term_width, 1245 int ef_list_expansions(FileExpansion *result, FILE *fp, int term_width) in ef_list_expansions() argument 1265 void *data, int term_width) in _ef_output_expansions() argument 1272 if(term_width < 1) in _ef_output_expansions() 1281 ef_plan_listing(result, term_width, &fmt); in _ef_output_expansions() 1305 static void ef_plan_listing(FileExpansion *result, int term_width, in ef_plan_listing() argument 1313 if(term_width < 0) in ef_plan_listing() 1314 term_width = 0; in ef_plan_listing() 1319 fmt->term_width = term_width; in ef_plan_listing() [all …]
|
/dports/x11/xterm/xterm-370/vttests/ |
H A D | halves.pl | 42 our ($lineno, $test_string, $term_width); 123 my $length = $term_width; 150 move_to((4 * $term_width) / 5); 152 move_to((3 * $term_width) / 5); 154 move_to((2 * $term_width) / 5); 156 move_to((1 * $term_width) / 5); 180 $term_width = screen_width();
|
H A D | insdelln.pl | 51 our ($lineno, $test_string, $term_height, $term_width); 174 my $length = $term_width; 211 move_to((4 * $term_width) / 5); 213 move_to((3 * $term_width) / 5); 215 move_to((2 * $term_width) / 5); 217 move_to((1 * $term_width) / 5); 241 $term_width = screen_width();
|
H A D | scroll.pl | 51 our ($lineno, $test_string, $term_height, $term_width, $max_scroll); 174 my $length = $term_width; 210 move_to((4 * $term_width) / 5); 212 move_to((3 * $term_width) / 5); 214 move_to((2 * $term_width) / 5); 216 move_to((1 * $term_width) / 5); 240 $term_width = screen_width();
|
H A D | blink.pl | 41 our ($lineno, $test_string, $term_width); 72 $value = $term_width; 74 $value = $term_width * 2; 123 $term_width=`tput cols`;
|
H A D | wrap.pl | 40 our ($lineno, $test_string, $term_width); 90 $value = $term_width; 92 $value = $term_width * 2; 150 $term_width=`tput cols`;
|
/dports/games/vitetris/vitetris-0.59.1/src/textgfx/ |
H A D | win.c | 12 if (term_width <= 32) in getmargin_x() 15 if (term_width < 58) in getmargin_x() 18 x = (term_width-56)/2; in getmargin_x() 20 else if (term_width < 48) in getmargin_x() 23 x = (term_width-(in_menu ? 34 : 44))/2; in getmargin_x()
|
H A D | resize.c | 60 if (w > term_width) in resizemenu() 62 resizeterm(term_height, term_width); in resizemenu() 63 wresize(window, term_height-1, term_width-x); in resizemenu() 64 if (w < term_width) in resizemenu() 121 w = term_width; in upd_termresize() 125 if (w == term_width && h == term_height) in upd_termresize() 134 resizeterm(term_height, term_width); in upd_termresize()
|
H A D | curses_win.c | 102 window = newwin(term_height-1, term_width-x, 1, x); in textgfx_entermenu() 135 if (term_width >= 45) { in textgfx_entergame() 137 if (term_width >= 47) in textgfx_entergame() 142 if (_HEIGHT_24L || term_width >= 76) { in textgfx_entergame()
|
/dports/misc/py-progressbar/progressbar-2.5/progressbar/ |
H A D | progressbar.py | 94 def __init__(self, maxval=None, widgets=None, term_width=None, poll=1, argument 108 if term_width is not None: 109 self.term_width = term_width 117 self.term_width = self._env_size() 178 self.term_width = w 195 width = self.term_width 224 if self.left_justify: return widgets.ljust(self.term_width) 225 else: return widgets.rjust(self.term_width) 282 self.num_intervals = max(100, self.term_width)
|
/dports/dns/dog/mutagen-c7abc956a10e8a3e2cc71f21279ea0a42f7b7c10/mutagen-runner/src/ |
H A D | progress_bar.rs | 16 term_width: usize, field 32 let term_width = term.size().1 as usize; in new() localVariable 33 let show_progress = term.is_term() && term_width > 20; in new() 37 term_width, in new() 93 let log_str_lines = 1 + (log_str.len() + 1) / self.term_width; in println() 146 let main_part_len = self.term_width.min(80); in write_progress_bar() 160 let space_after_main_bar = self.term_width - main_part_len; in write_progress_bar()
|
/dports/irc/irssi/irssi-1.2.3/src/fe-text/ |
H A D | term-terminfo.c | 147 term_width = current_term->width; in term_init() 194 if (x >= term_width) x = term_width-1; in term_move_reset() 212 term_width = current_term->width = width; in term_resize() 460 if (vcx >= term_width) in term_move() 461 vcx = term_width-1; in term_move() 476 while (vcx >= term_width) { in term_printed_text() 477 vcx -= term_width; in term_printed_text() 483 if (crealx >= term_width) in term_printed_text() 583 if (window->x + window->width < term_width) { in term_clrtoeol() 598 } else if (vcx < term_width) { in term_clrtoeol() [all …]
|
/dports/devel/py-cliff/cliff-3.3.0/cliff/formatters/ |
H A D | table.py | 150 def _width_info(term_width, field_count): argument 152 usable_total_width = max(0, term_width - 1 - 3 * field_count) 183 term_width = max_width 188 term_width = utils.terminal_width(stdout) 189 if not term_width: 196 if len(first_line) <= term_width: 202 term_width, field_count)
|
/dports/misc/e2fsprogs-libblkid/e2fsprogs-1.46.5/misc/ |
H A D | blkid.c | 152 static int term_width = -1; in pretty_print_line() local 155 if (term_width < 0) { in pretty_print_line() 156 term_width = get_terminal_width(); in pretty_print_line() 158 if (term_width > 80) { in pretty_print_line() 159 term_width -= 80; in pretty_print_line() 160 w = term_width / 10; in pretty_print_line() 163 term_width -= 2*w; in pretty_print_line() 166 w = term_width/2; in pretty_print_line()
|
/dports/misc/e2fsprogs-libuuid/e2fsprogs-1.46.5/misc/ |
H A D | blkid.c | 152 static int term_width = -1; in pretty_print_line() local 155 if (term_width < 0) { in pretty_print_line() 156 term_width = get_terminal_width(); in pretty_print_line() 158 if (term_width > 80) { in pretty_print_line() 159 term_width -= 80; in pretty_print_line() 160 w = term_width / 10; in pretty_print_line() 163 term_width -= 2*w; in pretty_print_line() 166 w = term_width/2; in pretty_print_line()
|
/dports/sysutils/e2fsprogs/e2fsprogs-1.46.5/misc/ |
H A D | blkid.c | 152 static int term_width = -1; in pretty_print_line() local 155 if (term_width < 0) { in pretty_print_line() 156 term_width = get_terminal_width(); in pretty_print_line() 158 if (term_width > 80) { in pretty_print_line() 159 term_width -= 80; in pretty_print_line() 160 w = term_width / 10; in pretty_print_line() 163 term_width -= 2*w; in pretty_print_line() 166 w = term_width/2; in pretty_print_line()
|
/dports/devel/cutter/cutter-1.2.6/module/ui/ |
H A D | cut-console-ui-factory.c | 250 gint term_width = 0; in guess_term_width() local 256 term_width = atoi(columns_env); in guess_term_width() 258 if (term_width == 0) { in guess_term_width() 261 term_width = atoi(term_width_env); in guess_term_width() 264 if (term_width < 0) in guess_term_width() 267 if (term_width == 0) { in guess_term_width() 272 term_width = -1; in guess_term_width() 274 term_width = 79; in guess_term_width() 277 return term_width; in guess_term_width()
|
/dports/net/guacamole-server/guacamole-server-1.3.0/src/terminal/ |
H A D | terminal_handlers.c | 116 if (col >= term->term_width) in guac_terminal_move_cursor() 117 col = term->term_width - 1; in guac_terminal_move_cursor() 270 if (term->cursor_col >= term->term_width) { in guac_terminal_echo() 278 term->cursor_col, term->term_width-2, 1); in guac_terminal_echo() 641 if (term->cursor_col + amount < term->term_width) in guac_terminal_csi() 643 term->cursor_col, term->term_width - amount - 1, in guac_terminal_csi() 762 term->term_height-1, term->term_width-1); in guac_terminal_csi() 783 term->cursor_col, term->term_width - 1); in guac_terminal_csi() 793 0, term->term_width - 1); in guac_terminal_csi() 826 if (term->cursor_col + amount < term->term_width) in guac_terminal_csi() [all …]
|
/dports/misc/toilet/toilet-0.3/src/ |
H A D | main.c | 49 cx->term_width = 80; in main() 114 cx->term_width = atoi(caca_optarg); in main() 124 cx->term_width = ws.ws_col; in main() 182 printf("%u\n", cx->term_width); in main()
|