Lines Matching refs:scr_width
436 static void display_cpus(int scr_width, char *scrbuf, int *lines_rem_p) argument
491 snprintf(scrbuf, scr_width,
513 # define display_cpus(scr_width, scrbuf, lines_rem) ((void)0) argument
567 static unsigned long display_header(int scr_width, int *lines_rem_p) argument
576 if (scr_width > (int)sizeof(scrbuf))
577 scr_width = sizeof(scrbuf);
578 snprintf(scrbuf, scr_width,
592 display_cpus(scr_width, scrbuf, lines_rem_p);
597 scrbuf[scr_width - 1] = '\0';
605 static NOINLINE void display_process_list(int lines_rem, int scr_width) argument
612 unsigned long total_memory = display_header(scr_width, &lines_rem); /* or use total_vsz? */
623 printf(OPT_BATCH_MODE ? "%.*s" : ESC"[7m" "%.*s" ESC"[m", scr_width,
687 scr_width += 2; /* account for leading '\n' and trailing NUL */
702 col = snprintf(line_buf, scr_width,
713 if ((int)(scr_width - col) > 1)
714 read_cmdline(line_buf + col, scr_width - col, s->pid, s->comm);
794 static void display_topmem_header(int scr_width, int *lines_rem_p) argument
806 printf(OPT_BATCH_MODE ? "%.*s\n" : ESC"[H" ESC"[J" "%.*s\n", scr_width, line_buf);
815 printf("%.*s\n", scr_width, line_buf);
821 printf("%.*s\n", scr_width, line_buf);
832 static NOINLINE void display_topmem_process_list(int lines_rem, int scr_width) argument
839 display_topmem_header(scr_width, &lines_rem);
848 printf(OPT_BATCH_MODE ? "%.*s" : ESC"[7m" "%.*s" ESC"[m", scr_width, line_buf);
864 if (scr_width > (int)MIN_WIDTH) {
865 read_cmdline(&line_buf[8*6], scr_width - MIN_WIDTH, s->pid, s->comm);
867 printf("\n""%.*s", scr_width, line_buf);
877 void display_topmem_process_list(int lines_rem, int scr_width);