Searched refs:termwidth (Results 1 - 11 of 11) sorted by relevance

/openbsd-current/usr.bin/column/
H A Dcolumn.c60 int termwidth; /* default terminal width */ variable
78 termwidth = 0;
80 termwidth = strtonum(p, 1, INT_MAX, NULL);
81 if (termwidth == 0 && ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) == 0 &&
83 termwidth = win.ws_col;
84 if (termwidth == 0)
85 termwidth = 80;
94 termwidth = strtonum(optarg, 1, INT_MAX, &errstr);
143 else if (*maxwidths >= termwidth)
160 if ((numcols = termwidth / *maxwidth
[all...]
/openbsd-current/usr.sbin/lpr/common_source/
H A Ddisplayq.c67 static int termwidth; variable
103 termwidth = 0;
105 termwidth = strtonum(p, 1, INT_MAX, NULL);
106 if (termwidth == 0 && ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) == 0 &&
108 termwidth = win.ws_col;
109 if (termwidth == 0)
110 termwidth = 80;
112 if (termwidth < 60)
113 termwidth = 60;
339 blankfill(termwidth
[all...]
/openbsd-current/usr.bin/sed/
H A Dmain.c106 int termwidth; variable
154 termwidth = 0;
156 termwidth = strtonum(p, 0, INT_MAX, NULL);
157 if (termwidth == 0 && ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) == 0 &&
159 termwidth = win.ws_col;
160 if (termwidth == 0)
161 termwidth = 80;
162 if (termwidth <= 8)
163 termwidth = 1;
165 termwidth
[all...]
H A Dprocess.c484 extern int termwidth;
489 if (count >= termwidth) {
/openbsd-current/bin/ps/
H A Dps.c66 int termwidth; /* width of screen (0 == infinity) */ variable
108 termwidth = 0;
110 termwidth = strtonum(cols, 1, INT_MAX, NULL);
111 if (termwidth == 0 &&
116 termwidth = ws.ws_col - 1;
117 if (termwidth == 0)
118 termwidth = 79;
264 termwidth = UNLIMITED;
265 else if (termwidth < 131)
266 termwidth
[all...]
H A Dextern.h42 extern int sumrusage, termwidth, totwidth, kvm_sysctl_only, needheader;
H A Dkeyword.c207 if (termwidth && (i += len + 1) > termwidth) {
H A Dprint.c126 if (ve->next != NULL || termwidth != UNLIMITED) {
128 left = termwidth - (totwidth - v->width);
137 char **envp = kvm_getenvv(kd, kp, termwidth);
160 argv = kvm_getargv(kd, kp, termwidth);
/openbsd-current/bin/ls/
H A Dls.c69 int termwidth; /* default terminal width */ variable
118 termwidth = 0;
120 termwidth = strtonum(p, 1, INT_MAX, NULL);
121 if (termwidth == 0 && ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) == 0 &&
123 termwidth = win.ws_col;
124 if (termwidth == 0)
125 termwidth = 80;
H A Dprint.c137 extern int termwidth;
149 mywidth = termwidth + 1; /* no extra space for last column */
302 extern int termwidth;
321 termwidth)
/openbsd-current/usr.bin/rusers/
H A Drusers.c110 long termwidth; variable
145 termwidth = 0;
147 termwidth = strtonum(cp, 1, LONG_MAX, NULL);
148 if (termwidth == 0 && ioctl(STDOUT_FILENO, TIOCGWINSZ, &win) == 0 &&
150 termwidth = win.ws_col;
151 if (termwidth == 0)
152 termwidth = 80;
649 len = termwidth -

Completed in 207 milliseconds