Debian Codegraph @

templates/man1/tput.1.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-02-27 19:40+0100\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "tput"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-tumbleweed
28 #, no-wrap
29 msgid "2025-11-11"
30 msgstr ""
31
32 #. type: TH
33 #: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-tumbleweed
34 #, no-wrap
35 msgid "ncurses 6.6"
36 msgstr ""
37
38 #. type: TH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "User commands"
43 msgstr ""
44
45 #. type: SH
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 #, no-wrap
49 msgid "NAME"
50 msgstr ""
51
52 #. type: Plain text
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 msgid ""
56 "B<\\%tput> - initialize a terminal, exercise its capabilities, or query I<\\"
57 "%term\\%info> database"
58 msgstr ""
59
60 #. type: SH
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 #, no-wrap
64 msgid "SYNOPSIS"
65 msgstr ""
66
67 #. type: Plain text
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 msgid ""
71 "B<tput> [B<-v>] [B<-T> I<terminal-type>] {I<cap-code> [I<parameter> .\\|.\\|."
72 "\\&]} .\\|.\\|."
73 msgstr ""
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 msgid "B<tput> [B<-v>] [B<-T> I<terminal-type>] [B<-x>] B<clear>"
79 msgstr ""
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 msgid "B<tput> [B<-v>] [B<-T> I<terminal-type>] B<init>"
85 msgstr ""
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 msgid "B<tput> [B<-v>] [B<-T> I<terminal-type>] B<\\%reset>"
91 msgstr ""
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 msgid "B<tput> [B<-v>] [B<-T> I<terminal-type>] B<\\%longname>"
97 msgstr ""
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 msgid "B<tput> [B<-v>] B<-S>"
103 msgstr ""
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid "B<tput> [B<-v>] B<-V>"
109 msgstr ""
110
111 #. type: SH
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 #, no-wrap
115 msgid "DESCRIPTION"
116 msgstr ""
117
118 #. type: Plain text
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 msgid ""
122 "B<\\%tput> uses the I<\\%term\\%info> library and database to make terminal-"
123 "specific capabilities and information available to the shell, to initialize "
124 "or reset the terminal, or to report a description of the current (or "
125 "specified) terminal type. Terminal capabilities are accessed by I<cap-"
126 "code>."
127 msgstr ""
128
129 #. type: Plain text
130 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
131 #: opensuse-tumbleweed
132 msgid ""
133 "B<\\%terminfo>(5) discusses terminal capabilities at length and presents a "
134 "complete list of standardized I<cap-codes>. B<\\%user_caps>(5) presents "
135 "other widely used but non-standard capabilities."
136 msgstr ""
137
138 #. "Boolean" + 2n
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "When retrieving capability values, the result depends upon the capability's "
144 "type."
145 msgstr ""
146
147 #. type: TP
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid "Boolean"
152 msgstr ""
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid ""
158 "B<\\%tput> sets its exit status to B<0> if the terminal possesses I<cap-"
159 "code>, and B<1> if it does not."
160 msgstr ""
161
162 #. type: TP
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 #, no-wrap
166 msgid "numeric"
167 msgstr ""
168
169 #. type: Plain text
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 msgid ""
173 "B<\\%tput> writes I<cap-code>'s decimal value to the standard output stream "
174 "if defined (B<-1> if it is not) followed by a newline."
175 msgstr ""
176
177 #. type: TP
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 #, no-wrap
181 msgid "string"
182 msgstr ""
183
184 #. type: Plain text
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 msgid ""
188 "B<\\%tput> writes I<cap-code>'s value to the standard output stream if "
189 "defined, without a trailing newline."
190 msgstr ""
191
192 #. type: Plain text
193 #: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-tumbleweed
194 msgid ""
195 "Before using a value returned on the standard output, the application should "
196 "test B<\\%tput>'s exit status to be sure it is 0; see section \\*(``EXIT "
197 "STATUS\\*('' below."
198 msgstr ""
199
200 #. type: SS
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 #, no-wrap
204 msgid "Operands"
205 msgstr ""
206
207 #. "longname" + 2n + adjustment for PDF
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 msgid ""
212 "Generally, an operand is a I<cap-code>, a capability code from the terminal "
213 "database, or a parameter thereto. Three others are specially recognized by "
214 "B<\\%tput>: B<init>, B<\\%reset>, and B<\\%longname>. Although these "
215 "resemble capability codes, they in fact receive special handling; we term "
216 "them \\*(``pseudo-capabilities\\*(''."
217 msgstr ""
218
219 #. type: TP
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 #, no-wrap
223 msgid "I<cap-code>"
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 msgid "indicates a capability from the terminal database."
230 msgstr ""
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "If I<cap-code> is of string type and takes parameters, B<\\%tput> interprets "
237 "arguments following I<cap-code> as the parameters, up to the (fixed) "
238 "quantity the capability requires."
239 msgstr ""
240
241 #. type: Plain text
242 #: archlinux fedora-44 fedora-rawhide mageia-cauldron
243 msgid ""
244 "Most parameters are numeric. Only a few terminal capabilities require "
245 "string parameters; B<\\%tput> uses a table to decide which to pass as "
246 "strings. Normally B<\\%tput> uses B<\\%tparm>(3X) to perform the "
247 "substitution. If no parameters are given for the capability, B<\\%tput> "
248 "writes the string without performing the substitution."
249 msgstr ""
250
251 #. type: TP
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "B<init>"
256 msgstr ""
257
258 #. type: Plain text
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 msgid ""
262 "initializes the terminal. If the terminal database is present and an entry "
263 "for the user's terminal type exists, the following occur."
264 msgstr ""
265
266 #. type: TP
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "(1)"
271 msgstr ""
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid ""
277 "B<\\%tput> retrieves the terminal's mode settings. It successively tests "
278 "the file descriptors corresponding to"
279 msgstr ""
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid "the standard error stream,"
285 msgstr ""
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 msgid "the standard output stream,"
291 msgstr ""
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid "the standard input stream, and"
297 msgstr ""
298
299 #. type: Plain text
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 msgid "I<\\%/dev/tty>"
303 msgstr ""
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid ""
309 "to obtain terminal settings. Having retrieved them, B<\\%tput> remembers "
310 "which descriptor to use for further updates."
311 msgstr ""
312
313 #. type: TP
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "(2)"
318 msgstr ""
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid ""
324 "If the terminal dimensions cannot be obtained from the operating system, but "
325 "the environment or terminal type database entry describes them, B<\\%tput> "
326 "updates the operating system's notion of them."
327 msgstr ""
328
329 #. type: TP
330 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
331 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
332 #, no-wrap
333 msgid "(3)"
334 msgstr ""
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid "B<\\%tput> updates the terminal modes."
340 msgstr ""
341
342 #. type: Plain text
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 msgid ""
346 "Tab expansion is turned on or off per the specification in the entry, and"
347 msgstr ""
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid "if tabs are not expanded, standard tabs (every 8 spaces) are set."
353 msgstr ""
354
355 #. type: TP
356 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
357 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
358 #, no-wrap
359 msgid "(4)"
360 msgstr ""
361
362 #. type: Plain text
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 msgid ""
366 "If initialization capabilities, detailed in subsection \\*(``Tabs and "
367 "Initialization\\*('' of B<\\%terminfo>(5), are present, B<\\%tput> writes "
368 "them to the standard output stream."
369 msgstr ""
370
371 #. type: TP
372 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
373 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
374 #, no-wrap
375 msgid "(5)"
376 msgstr ""
377
378 #. type: Plain text
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 msgid "B<\\%tput> flushes the standard output stream."
382 msgstr ""
383
384 #. type: Plain text
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 msgid ""
388 "If an entry lacks the information needed for an activity above, that "
389 "activity is silently skipped."
390 msgstr ""
391
392 #. type: TP
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 #, no-wrap
396 msgid "B<reset>"
397 msgstr ""
398
399 #. type: Plain text
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 msgid ""
403 "re-initializes the terminal. A reset differs from initialization in two "
404 "ways."
405 msgstr ""
406
407 #. type: Plain text
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 msgid "B<\\%tput> sets the terminal modes to a \\*(``sane\\*('' state,"
411 msgstr ""
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 msgid "enabling canonical (\\*(``cooked\\*('') and echo modes,"
417 msgstr ""
418
419 #. type: Plain text
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 msgid "disabling cbreak and raw modes,"
423 msgstr ""
424
425 #. type: Plain text
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 msgid "enabling newline translation, and"
429 msgstr ""
430
431 #. type: Plain text
432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
434 msgid "setting any special input characters to their default values."
435 msgstr ""
436
437 #. type: Plain text
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 msgid ""
441 "If any reset capabilities are defined for the terminal type, B<\\%tput> "
442 "writes them to the output stream. Otherwise, B<\\%tput> uses any defined "
443 "initialization capabilities. Reset capabilities are detailed in subsection "
444 "\\*(``Tabs and Initialization\\*('' of B<\\%terminfo>(5)."
445 msgstr ""
446
447 #. type: TP
448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
450 #, no-wrap
451 msgid "B<longname>"
452 msgstr ""
453
454 #. type: Plain text
455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
457 msgid ""
458 "A I<\\%term\\%info> entry begins with one or more names by which an "
459 "application can refer to the entry, before the list of terminal "
460 "capabilities. The names are separated by \\*(``|\\*('' characters. X/Open "
461 "Curses terms the last name the \\*(``long name\\*('', and indicates that it "
462 "may include blanks."
463 msgstr ""
464
465 #. type: Plain text
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 msgid ""
469 "B<\\%tic> warns if the last name does not include blanks, to accommodate old "
470 "I<\\%term\\%info> entries that treated the long name as an optional "
471 "feature. The long name is often referred to as the description field."
472 msgstr ""
473
474 #. type: Plain text
475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
477 msgid ""
478 "If the terminal database is present and an entry for the user's terminal "
479 "type exists, B<\\%tput> reports its description to the standard output "
480 "stream, without a trailing newline. See B<\\%terminfo>(5)."
481 msgstr ""
482
483 #. type: Plain text
484 #: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-tumbleweed
485 msgid ""
486 "I<Note:> Redirecting the output of \\*(``B<tput init>\\*('' or \\*(``B<tput "
487 "reset>\\*('' to a file will capture only part of their actions. Changes to "
488 "the terminal modes are not affected by file descriptor redirection, since "
489 "the terminal modes are altered via I<\\%ioctl>(2)."
490 msgstr ""
491
492 #. type: SS
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 #, no-wrap
496 msgid "Aliases"
497 msgstr ""
498
499 #. type: Plain text
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 msgid ""
503 "If B<\\%tput> is invoked via link with any of the names B<clear>, B<init>, "
504 "or B<\\%reset>, it operates as if run with the corresponding "
505 "(pseudo-)capability operand. For example, executing a link named B<\\"
506 "%reset> that points to B<\\%tput> has the same effect as \\%\\*(``B<tput \\"
507 "%reset>\\*(''."
508 msgstr ""
509
510 #. type: Plain text
511 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
512 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
513 msgid ""
514 "This feature was introduced by I<\\%ncurses> 5.2 in 2000. It is rarely used."
515 msgstr ""
516
517 #. type: TP
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 #, no-wrap
521 msgid "B<\\%clear>"
522 msgstr ""
523
524 #. type: Plain text
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 msgid ""
528 "is a separate program, which is both smaller and more frequently executed."
529 msgstr ""
530
531 #. type: Plain text
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 msgid "has the same name as another program in widespread use."
535 msgstr ""
536
537 #. type: TP
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 #, no-wrap
541 msgid "B<\\%reset>"
542 msgstr ""
543
544 #. type: Plain text
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 msgid ""
548 "is provided by the B<\\%tset>(1) utility (also via a link named B<\\%reset>)."
549 msgstr ""
550
551 #. type: SS
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 #, no-wrap
555 msgid "Terminal Size"
556 msgstr ""
557
558 #. type: Plain text
559 #: archlinux fedora-44 fedora-rawhide mageia-cauldron
560 msgid ""
561 "Besides the pseudo-capabilities (such as B<init>), B<\\%tput> treats the "
562 "B<lines> and B<cols> I<cap-codes> specially: it may call B<\\%setupterm>(3X) "
563 "to obtain the terminal size."
564 msgstr ""
565
566 #. type: Plain text
567 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
568 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
569 msgid ""
570 "First, B<\\%tput> attempts to obtain these capabilities from the terminal "
571 "database. This generally fails for terminal emulators, which lack a fixed "
572 "window size and thus omit the capabilities."
573 msgstr ""
574
575 #. type: Plain text
576 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
577 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
578 msgid ""
579 "It then asks the operating system for the terminal's size, which generally "
580 "works, unless the connection is via a serial line that does not support "
581 "\\*(``NAWS\\*('': negotiations about window size."
582 msgstr ""
583
584 #. type: Plain text
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 msgid ""
588 "Finally, it inspects the environment variables I<LINES> and I<\\%COLUMNS>, "
589 "which may override the terminal size."
590 msgstr ""
591
592 #. type: Plain text
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 msgid ""
596 "If the B<-T> option is given, B<\\%tput> ignores the environment variables "
597 "by calling B<\\%use_tioctl(TRUE)>, relying upon the operating system (or, "
598 "ultimately, the terminal database)."
599 msgstr ""
600
601 #. type: SH
602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
604 #, no-wrap
605 msgid "OPTIONS"
606 msgstr ""
607
608 #. type: TP
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 #, no-wrap
612 msgid "B<-S>"
613 msgstr ""
614
615 #. type: Plain text
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 msgid ""
619 "retrieves more than one capability per invocation of B<\\%tput>. The "
620 "capabilities must be passed to B<\\%tput> from the standard input stream "
621 "instead of from the command line (see section \\*(``EXAMPLES\\*('' below). "
622 "Only one I<cap-code> is allowed per line. The B<-S> option changes the "
623 "meanings of the B<0> and B<1> exit statuses (see section \\*(``EXIT "
624 "STATUS\\*('' below)."
625 msgstr ""
626
627 #. type: Plain text
628 #: archlinux fedora-44 fedora-rawhide mageia-cauldron
629 msgid ""
630 "Some capabilities use string parameters rather than numeric ones. B<\\"
631 "%tput> employs a built-in table and the presence of parameters in its input "
632 "to decide how to interpret them, and whether to use B<\\%tparm>(3X)."
633 msgstr ""
634
635 #. type: TP
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 #, no-wrap
639 msgid "B<-T\\ >I<type>"
640 msgstr ""
641
642 #. type: Plain text
643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
645 msgid ""
646 "indicates the terminal's I<type>. Normally this option is unnecessary, "
647 "because a default is taken from the I<TERM> environment variable. If "
648 "specified, the environment variables I<LINES> and I<\\%COLUMNS> are also "
649 "ignored."
650 msgstr ""
651
652 #. type: TP
653 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
654 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
655 #, no-wrap
656 msgid "B<-v>"
657 msgstr ""
658
659 #. type: Plain text
660 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
661 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
662 msgid "causes B<\\%tput> to operate verbosely, reporting warnings."
663 msgstr ""
664
665 #. type: TP
666 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
667 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
668 #, no-wrap
669 msgid "B<-V>"
670 msgstr ""
671
672 #. type: Plain text
673 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
674 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
675 msgid ""
676 "reports the version of I<\\%ncurses> associated with B<\\%tput>, and exits "
677 "with a successful status."
678 msgstr ""
679
680 #. type: TP
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 #, no-wrap
684 msgid "B<-x>"
685 msgstr ""
686
687 #. type: Plain text
688 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
689 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
690 msgid ""
691 "prevents \\%\\*(``B<tput clear>\\*('' from attempting to clear the "
692 "scrollback buffer."
693 msgstr ""
694
695 #. type: SH
696 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
697 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
698 #, no-wrap
699 msgid "EXIT STATUS"
700 msgstr ""
701
702 #. type: Plain text
703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
705 msgid "Normally, one should interpret B<\\%tput>'s exit statuses as follows."
706 msgstr ""
707
708 #. type: tbl table
709 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
710 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
711 #, no-wrap
712 msgid "Status"
713 msgstr ""
714
715 #. type: tbl table
716 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
717 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
718 #, no-wrap
719 msgid "Meaning When -S Not Specified"
720 msgstr ""
721
722 #. type: tbl table
723 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
724 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
725 #, no-wrap
726 msgid "_"
727 msgstr ""
728
729 #. type: tbl table
730 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
731 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
732 #, no-wrap
733 msgid "0"
734 msgstr ""
735
736 #. type: tbl table
737 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
738 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
739 #, no-wrap
740 msgid "Boolean or string capability present"
741 msgstr ""
742
743 #. type: tbl table
744 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
745 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
746 #, no-wrap
747 msgid "1"
748 msgstr ""
749
750 #. type: tbl table
751 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
752 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
753 #, no-wrap
754 msgid "Boolean or numeric capability absent"
755 msgstr ""
756
757 #. type: tbl table
758 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
759 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
760 #, no-wrap
761 msgid "2"
762 msgstr ""
763
764 #. type: tbl table
765 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
766 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
767 #, no-wrap
768 msgid "usage error or no terminal type specified"
769 msgstr ""
770
771 #. type: tbl table
772 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
773 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
774 #, no-wrap
775 msgid "3"
776 msgstr ""
777
778 #. type: tbl table
779 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
780 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
781 #, no-wrap
782 msgid "unrecognized terminal type"
783 msgstr ""
784
785 #. type: tbl table
786 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
787 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
788 #, no-wrap
789 msgid "4"
790 msgstr ""
791
792 #. type: tbl table
793 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
794 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
795 #, no-wrap
796 msgid "unrecognized capability code"
797 msgstr ""
798
799 #. type: tbl table
800 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
801 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
802 #, no-wrap
803 msgid "E<gt>4"
804 msgstr ""
805
806 #. type: tbl table
807 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
808 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
809 #, no-wrap
810 msgid "system error (4 + B<errno>)"
811 msgstr ""
812
813 #. type: Plain text
814 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
815 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
816 msgid "When the B<-S> option is used, some statuses change meanings."
817 msgstr ""
818
819 #. type: tbl table
820 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
821 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
822 #, no-wrap
823 msgid "Meaning When -S Specified"
824 msgstr ""
825
826 #. type: tbl table
827 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
828 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
829 #, no-wrap
830 msgid "all operands interpreted"
831 msgstr ""
832
833 #. type: tbl table
834 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
835 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
836 #, no-wrap
837 msgid "unused"
838 msgstr ""
839
840 #. type: tbl table
841 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
842 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
843 #, no-wrap
844 msgid "some operands not interpreted"
845 msgstr ""
846
847 #. type: SH
848 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
849 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
850 #, no-wrap
851 msgid "ENVIRONMENT"
852 msgstr ""
853
854 #. "COLUMNS" + 2n
855 #. type: Plain text
856 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
857 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
858 msgid ""
859 "B<\\%tput> reads up to three environment variables if the B<-T> option is "
860 "not specified."
861 msgstr ""
862
863 #. type: TP
864 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
865 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
866 #, no-wrap
867 msgid "I<COLUMNS>"
868 msgstr ""
869
870 #. type: Plain text
871 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
872 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
873 msgid "specifies the width of the screen in characters."
874 msgstr ""
875
876 #. type: TP
877 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
878 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
879 #, no-wrap
880 msgid "I<LINES>"
881 msgstr ""
882
883 #. type: Plain text
884 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
885 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
886 msgid "specifies the height of the screen in characters."
887 msgstr ""
888
889 #. type: TP
890 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
891 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
892 #, no-wrap
893 msgid "I<TERM>"
894 msgstr ""
895
896 #. type: Plain text
897 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
898 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
899 msgid ""
900 "denotes the terminal type. Each terminal type is distinct, though many are "
901 "similar."
902 msgstr ""
903
904 #. type: SH
905 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
906 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
907 #, no-wrap
908 msgid "FILES"
909 msgstr ""
910
911 #. type: TP
912 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
913 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
914 #, no-wrap
915 msgid "I</usr/share/tabset>"
916 msgstr ""
917
918 #. type: Plain text
919 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
920 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
921 msgid "tab stop initialization database"
922 msgstr ""
923
924 #. type: TP
925 #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1
926 #: opensuse-tumbleweed
927 #, no-wrap
928 msgid "I</usr/share/terminfo>"
929 msgstr ""
930
931 #. type: Plain text
932 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
933 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
934 msgid "compiled terminal description database"
935 msgstr ""
936
937 #. type: SH
938 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
939 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
940 #, no-wrap
941 msgid "PORTABILITY"
942 msgstr ""
943
944 #. type: Plain text
945 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
946 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
947 msgid ""
948 "Over time I<\\%ncurses> B<\\%tput> has differed from that of System\\ V in "
949 "two important respects, one now mostly historical."
950 msgstr ""
951
952 #. type: Plain text
953 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
954 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
955 msgid ""
956 "\\%\\*(``B<tput> I<cap-code>\\*('' writes to the standard output, which need "
957 "not be a terminal device. However, the operands that manipulate terminal "
958 "modes might not use the standard output."
959 msgstr ""
960
961 #. type: Plain text
962 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
963 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
964 msgid ""
965 "System\\ V I<tput>'s B<init> and B<\\%reset> operands use logic from 4.1cBSD "
966 "I<tset>, manipulating terminal modes. It checks the same file descriptors "
967 "(and I<\\%/dev/tty>) for association with a terminal device as I<\\"
968 "%ncurses> now does, and if none are, finally assumes a 1200 baud terminal. "
969 "When updating terminal modes, it ignores errors."
970 msgstr ""
971
972 #. type: Plain text
973 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
974 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
975 msgid ""
976 "Until I<\\%ncurses> 6.1 (see section \\*(``HISTORY\\*('' below), B<\\%tput> "
977 "did not modify terminal modes. It now employs a scheme similar to System\\ "
978 "V, using functions shared with B<\\%tset> (and ultimately based on 4.4BSD "
979 "I<tset>). If it is not able to open a terminal (for instance, when run by "
980 "I<cron>(1)), B<\\%tput> exits with an error status."
981 msgstr ""
982
983 #. type: Plain text
984 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
985 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
986 msgid ""
987 "System\\ V I<tput> assumes that the type of a I<cap-code> operand is numeric "
988 "if all the characters of its value are decimal numbers; if they are not, it "
989 "treats I<cap-code> as a string capability."
990 msgstr ""
991
992 #. type: Plain text
993 #: archlinux fedora-44 fedora-rawhide mageia-cauldron
994 msgid ""
995 "Most implementations that provide support for I<cap-code> operands use the "
996 "B<\\%tparm>(3X) function to expand its parameters. That function expects a "
997 "mixture of numeric and string parameters, requiring B<\\%tput> to know which "
998 "type to use."
999 msgstr ""
1000
1001 #. type: Plain text
1002 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1003 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1004 msgid ""
1005 "I<\\%ncurses> B<\\%tput> uses a table to determine the parameter types for "
1006 "the standard I<cap-code> operands, and an internal function to analyze "
1007 "nonstandard I<cap-code> operands."
1008 msgstr ""
1009
1010 #. type: Plain text
1011 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1012 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1013 msgid ""
1014 "While more reliable than System\\ V's utility, a portability problem is "
1015 "introduced by this analysis. An OpenBSD developer adapted the internal "
1016 "library function from I<\\%ncurses> to port NetBSD's I<termcap>-based "
1017 "I<tput> to I<\\%term\\%info>, and modified it to interpret multiple I<cap-"
1018 "codes> (and parameters) on the command line. Portable applications should "
1019 "not rely upon this feature; I<\\%ncurses> offers it to support applications "
1020 "written specifically for OpenBSD."
1021 msgstr ""
1022
1023 #. generic
1024 #. type: Plain text
1025 #: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-tumbleweed
1026 msgid ""
1027 "I<\\%ncurses>'s implementation of I<tput>, unlike others, accepts both "
1028 "I<termcap> and I<\\%term\\%info> I<cap-codes> if I<termcap> support is "
1029 "compiled in. In that case, however, I<termcap> and I<\\%term\\%info> codes "
1030 "have two ambiguities; I<\\%ncurses> assumes the I<\\%term\\%info> code."
1031 msgstr ""
1032
1033 #. type: Plain text
1034 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1035 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1036 msgid ""
1037 "The I<cap-code> B<dl> means B<\\%delete_line> to I<termcap> but B<\\"
1038 "%parm_delete_line> to I<\\%term\\%info>. I<termcap> uses the code B<DL> for "
1039 "B<\\%parm_delete_line>. I<\\%term\\%info> uses the code B<dl1> for B<\\"
1040 "%delete_line>."
1041 msgstr ""
1042
1043 #. type: Plain text
1044 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1045 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1046 msgid ""
1047 "The I<cap-code> B<ed> means B<\\%exit_delete_mode> to I<termcap> but B<\\"
1048 "%clr_eos> to I<\\%term\\%info>. I<termcap> uses the code B<cd> for B<\\"
1049 "%clr_eos>. I<\\%term\\%info> uses the code B<rmdc> for B<\\"
1050 "%exit_delete_mode>."
1051 msgstr ""
1052
1053 #. longname was added in October 1989.
1054 #. type: Plain text
1055 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1056 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1057 msgid ""
1058 "The B<\\%longname> operand, B<-S> option, and the parameter-substitution "
1059 "features used in the B<cup> example below, were not supported in AT&T/USL "
1060 "I<curses> before SVr4 (1989). Later, 4.3BSD-Reno (1990) added support for "
1061 "B<\\%longname>, and in 1994, NetBSD added support for the parameter-"
1062 "substitution features."
1063 msgstr ""
1064
1065 #. type: Plain text
1066 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1067 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1068 msgid ""
1069 "IEEE Std 1003.1/The Open Group Base Specifications Issue\\ 7 (POSIX.1-2008) "
1070 "documents only the B<clear>, B<init>, and B<\\%reset> operands. A few "
1071 "observations of interest arise from that selection."
1072 msgstr ""
1073
1074 #. type: Plain text
1075 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1076 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1077 msgid ""
1078 "I<\\%ncurses> supports B<clear> as it does any other standard I<cap-code>. "
1079 "The others (B<init> and B<\\%longname>) do not correspond to terminal "
1080 "capabilities."
1081 msgstr ""
1082
1083 #. type: Plain text
1084 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1085 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1086 msgid ""
1087 "The I<tput> on SVr4-based systems such as Solaris, IRIX64, and HP-UX, as "
1088 "well as others such as AIX and Tru64, also support standard I<cap-code> "
1089 "operands."
1090 msgstr ""
1091
1092 #. type: Plain text
1093 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1094 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1095 msgid ""
1096 "A few platforms such as FreeBSD recognize I<termcap> codes rather than I<\\"
1097 "%term\\%info> capability codes in their respective I<tput> commands. Since "
1098 "2010, NetBSD's I<tput> uses I<\\%term\\%info> codes. Before that, it (like "
1099 "FreeBSD) recognized I<termcap> codes."
1100 msgstr ""
1101
1102 #. type: Plain text
1103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1105 msgid ""
1106 "Beginning in 2021, FreeBSD uses I<\\%ncurses> B<tput>, configured for both "
1107 "I<\\%term\\%info> (tested first) and I<termcap> (as a fallback)."
1108 msgstr ""
1109
1110 #. type: Plain text
1111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1113 msgid ""
1114 "Because (apparently) all I<certified> Unix systems support the full set of "
1115 "capability codes, the reason for documenting only a few may not be apparent."
1116 msgstr ""
1117
1118 #. type: Plain text
1119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1121 msgid ""
1122 "X/Open Curses Issue\\ 7 documents B<tput> differently, with I<cap-code> and "
1123 "the other features used in this implementation."
1124 msgstr ""
1125
1126 #. type: Plain text
1127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1129 msgid ""
1130 "That is, there are two standards for I<tput>: POSIX (a subset) and X/Open "
1131 "Curses (the full implementation). POSIX documents a subset to avoid the "
1132 "complication of including X/Open Curses and the terminal capability database."
1133 msgstr ""
1134
1135 #. type: Plain text
1136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1138 msgid ""
1139 "While it is certainly possible to write a I<tput> program without using "
1140 "I<curses>, no system with a I<curses> implementation provides a I<tput> "
1141 "utility that does not also support standard I<cap-codes>."
1142 msgstr ""
1143
1144 #. type: Plain text
1145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1147 msgid ""
1148 "X/Open Curses Issue\\ 7 (2009) is the first version to document utilities. "
1149 "However that part of X/Open Curses does not follow existing practice (that "
1150 "is, System\\ V I<curses> behavior)."
1151 msgstr ""
1152
1153 #. type: Plain text
1154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1156 msgid ""
1157 "It assigns exit status 4 to \\*(``invalid operand\\*('', which may have the "
1158 "same meaning as \\*(``unknown capability\\*(''. For instance, the source "
1159 "code for Solaris I<xcurses> uses the term \\*(``invalid\\*('' in this case."
1160 msgstr ""
1161
1162 #. type: Plain text
1163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1165 msgid ""
1166 "It assigns exit status 255 to a numeric variable that is not specified in "
1167 "the I<\\%term\\%info> database. That likely is a documentation error, "
1168 "mistaking the \\*(``-1\\*('' written to the standard output to indicate an "
1169 "absent or canceled numeric capability for an (unsigned) exit status."
1170 msgstr ""
1171
1172 #. type: Plain text
1173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1175 msgid ""
1176 "The various System\\ V implementations (AIX, HP-UX, Solaris) use the same "
1177 "exit statuses as I<\\%ncurses>."
1178 msgstr ""
1179
1180 #. type: Plain text
1181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1183 msgid ""
1184 "NetBSD I<curses> documents exit statuses that correspond to neither I<\\"
1185 "%ncurses> nor X/Open Curses."
1186 msgstr ""
1187
1188 #. type: SH
1189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1191 #, no-wrap
1192 msgid "HISTORY"
1193 msgstr ""
1194
1195 #. It also exited with backwards exit status (1 on success, 0 on
1196 #. failure), and was characterized by Bostic in 1988 as "pretty
1197 #. unreasonable".
1198 #. See Spinellis's "unix-history-repo" on GitHub.
1199 #. type: Plain text
1200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1202 msgid ""
1203 "Bill Joy wrote a I<tput> command during development of 4BSD in October "
1204 "1980. This initial version only cleared the screen, and did not ship with "
1205 "official distributions."
1206 msgstr ""
1207
1208 #. type: Plain text
1209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1211 msgid "System\\ V developed a different I<tput> command."
1212 msgstr ""
1213
1214 #. type: Plain text
1215 #: archlinux fedora-44 fedora-rawhide
1216 msgid ""
1217 "SVr2 (1984) provided a rudimentary I<tput> that checked the parameter "
1218 "against each capability name and returned the corresponding value. This "
1219 "version of I<tput> did not use B<\\%tparm>(3X) for parameterized "
1220 "capabilities."
1221 msgstr ""
1222
1223 #. SVr3 released in 1987, not 1985.
1224 #. https://unix.org/what_is_unix/history_timeline.html
1225 #. type: Plain text
1226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1228 msgid ""
1229 "SVr3 (1987) replaced that with a more extensive program whose support for "
1230 "B<init> and B<\\%reset> operands (more than half the program) incorporated "
1231 "the B<\\%reset> feature of BSD I<tset> written by Eric Allman."
1232 msgstr ""
1233
1234 #. type: Plain text
1235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1237 msgid ""
1238 "SVr4 (1989) added color initialization by using the B<\\%orig_colors> "
1239 "(B<oc>) and B<\\%orig_pair> (B<op>) capabilities in its B<init> logic."
1240 msgstr ""
1241
1242 #. https://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD-Reno/src/usr.bin/tput/tput.c
1243 #. https://minnie.tuhs.org/cgi-bin/utree.pl?file=Net2/usr/src/usr.bin/tput/tput.c
1244 #. https://minnie.tuhs.org/cgi-bin/utree.pl?file=4.4BSD/usr/src/usr.bin/tput/tput.c
1245 #. https://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD-Reno/src/usr.bin/tput/clear.sh
1246 #. type: Plain text
1247 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
1248 #: opensuse-leap-16-1 opensuse-tumbleweed
1249 msgid ""
1250 "Keith Bostic refactored BSD I<tput> for shipment in 4.3BSD-Reno (1990), "
1251 "making it follow the interface of System\\ V I<tput> by accepting some "
1252 "parameters named for I<\\%term\\%info> (pseudo-)capabilities: B<clear>, "
1253 "B<init>, B<\\%longname>, and B<\\%reset>. However, because he had only "
1254 "I<termcap> available, it accepted I<termcap> codes for other capabilities. "
1255 "Also, Bostic's BSD I<tput> did not modify the terminal modes as the earlier "
1256 "BSD I<tset> had done. At the same time, Bostic added a shell script named "
1257 "\\*(``clear\\*('' that used I<tput> to clear the screen. These became the "
1258 "\\*(``modern\\*('' BSD implementation of I<tput>."
1259 msgstr ""
1260
1261 #. type: Plain text
1262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1264 msgid ""
1265 "The origin of I<\\%ncurses> B<\\%tput> lies outside both System\\ V and BSD, "
1266 "in Ross Ridge's I<\\%mytinfo> package, published on I<comp.sources.unix> in "
1267 "December 1992. Ridge's program made more sophisticated use of the terminal "
1268 "capabilities than the BSD program. Eric Raymond used that I<tput> program "
1269 "(and other parts of I<\\%mytinfo>) in I<\\%ncurses> in June 1995. "
1270 "Incorporating the portions dealing with terminal capabilities almost without "
1271 "change, Raymond made improvements to the way command-line parameters were "
1272 "handled."
1273 msgstr ""
1274
1275 #. type: Plain text
1276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1278 msgid ""
1279 "Before I<\\%ncurses> 6.1 (2018), its B<\\%tset> and B<\\%tput> utilities "
1280 "differed."
1281 msgstr ""
1282
1283 #. type: Plain text
1284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1286 msgid ""
1287 "B<\\%tset> was more effective, resetting the terminal's modes and special "
1288 "input characters."
1289 msgstr ""
1290
1291 #. type: Plain text
1292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1294 msgid ""
1295 "On the other hand, B<\\%tset>'s repertoire of terminal capabilities for "
1296 "resetting the terminal was more limited; it had only equivalents of B<\\"
1297 "%reset_1string> (B<rs1>), B<\\%reset_2string> (B<rs2>), and B<\\%reset_file> "
1298 "(B<rf>), and not the tab stop and margin update features of B<\\%tput>."
1299 msgstr ""
1300
1301 #. type: Plain text
1302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1304 msgid ""
1305 "The I<\\%reset> program is traditionally an alias for B<\\%tset> due to its "
1306 "ability to reset the terminal's modes and special input characters."
1307 msgstr ""
1308
1309 #. type: Plain text
1310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1312 msgid ""
1313 "As of I<\\%ncurses> 6.1, the \\*(``reset\\*('' features of the two programs "
1314 "are (mostly) the same. Two minor differences remain."
1315 msgstr ""
1316
1317 #. type: Plain text
1318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1320 msgid ""
1321 "When issuing a reset, the B<\\%tset> program checks whether the device "
1322 "appears to be a pseudoterminal (as might be used by a terminal emulator "
1323 "program), and, if it does not, waits one second in case it is communicating "
1324 "with a hardware terminal."
1325 msgstr ""
1326
1327 #. type: Plain text
1328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1330 msgid ""
1331 "The two programs write the terminal initialization strings to different "
1332 "streams; that is, standard error for B<\\%tset> and standard output for B<\\"
1333 "%tput>."
1334 msgstr ""
1335
1336 #. type: SH
1337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1339 #, no-wrap
1340 msgid "EXAMPLES"
1341 msgstr ""
1342
1343 #. type: TP
1344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1346 #, no-wrap
1347 msgid "B<tput init>"
1348 msgstr ""
1349
1350 #. type: Plain text
1351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1353 msgid ""
1354 "Initialize the terminal according to the type of terminal in the I<TERM> "
1355 "environment variable. If the system does not reliably initialize the "
1356 "terminal upon login, this command can be included in I<\\%$HOME/.profile> "
1357 "after exporting the I<TERM> environment variable."
1358 msgstr ""
1359
1360 #. type: TP
1361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1363 #, no-wrap
1364 msgid "B<tput -T5620 reset>"
1365 msgstr ""
1366
1367 #. type: Plain text
1368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1370 msgid ""
1371 "Reset an AT&T 5620 terminal, overriding the terminal type in the I<TERM> "
1372 "environment variable."
1373 msgstr ""
1374
1375 #. type: TP
1376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1378 #, no-wrap
1379 msgid "B<tput cnorm>"
1380 msgstr ""
1381
1382 #. type: Plain text
1383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1385 msgid "Set cursor to normal visibility."
1386 msgstr ""
1387
1388 #. type: TP
1389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1391 #, no-wrap
1392 msgid "B<tput home>"
1393 msgstr ""
1394
1395 #. type: Plain text
1396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1398 msgid ""
1399 "Move the cursor to line 0, column 0: the upper left corner of the screen, "
1400 "usually known as the \\*(``home\\*('' cursor position."
1401 msgstr ""
1402
1403 #. type: TP
1404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1406 #, no-wrap
1407 msgid "B<tput clear>"
1408 msgstr ""
1409
1410 #. type: Plain text
1411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1413 msgid ""
1414 "Clear the screen: write the B<\\%clear_screen> capability's value to the "
1415 "standard output stream."
1416 msgstr ""
1417
1418 #. type: TP
1419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1421 #, no-wrap
1422 msgid "B<tput cols>"
1423 msgstr ""
1424
1425 #. type: Plain text
1426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1428 msgid "Report the number of columns used by the current terminal type."
1429 msgstr ""
1430
1431 #. type: TP
1432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1434 #, no-wrap
1435 msgid "B<tput -Tadm3a cols>"
1436 msgstr ""
1437
1438 #. type: Plain text
1439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1441 msgid "Report the number of columns used by an ADM-3A terminal."
1442 msgstr ""
1443
1444 #. type: TP
1445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1447 #, no-wrap
1448 msgid "B<strong=\\(gatput smso\\(ga normal=\\(gatput rmso\\(ga>"
1449 msgstr ""
1450
1451 #. type: Plain text
1452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1454 msgid ""
1455 "Set shell variables to capability values: B<strong> and B<normal>, to begin "
1456 "and end, respectively, stand-out mode for the terminal. One might use these "
1457 "to present a prompt."
1458 msgstr ""
1459
1460 #. type: Plain text
1461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1463 #, no-wrap
1464 msgid "printf \"${strong}Username:${normal} \"\n"
1465 msgstr ""
1466
1467 #. type: TP
1468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1470 #, no-wrap
1471 msgid "B<tput hc>"
1472 msgstr ""
1473
1474 #. type: Plain text
1475 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1476 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1477 msgid "Indicate via exit status whether the terminal is a hard copy device."
1478 msgstr ""
1479
1480 #. type: TP
1481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1483 #, no-wrap
1484 msgid "B<tput cup 23 4>"
1485 msgstr ""
1486
1487 #. type: Plain text
1488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1490 msgid "Move the cursor to line 23, column 4."
1491 msgstr ""
1492
1493 #. type: TP
1494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1496 #, no-wrap
1497 msgid "B<tput cup>"
1498 msgstr ""
1499
1500 #. type: Plain text
1501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1503 msgid ""
1504 "Report the value of the B<\\%cursor_address> (B<cup>) capability (used for "
1505 "cursor movement), with no parameters substituted."
1506 msgstr ""
1507
1508 #. type: TP
1509 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1510 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1511 #, no-wrap
1512 msgid "B<tput longname>"
1513 msgstr ""
1514
1515 #. type: Plain text
1516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1518 msgid ""
1519 "Report the I<\\%term\\%info> database's description of the terminal type "
1520 "specified in the I<TERM> environment variable."
1521 msgstr ""
1522
1523 #. type: TP
1524 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1525 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1526 #, no-wrap
1527 msgid "B<tput -S>"
1528 msgstr ""
1529
1530 #. type: Plain text
1531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1533 msgid ""
1534 "Process multiple capabilities. The B<-S> option can be profitably used with "
1535 "a shell \\*(``here document\\*(''."
1536 msgstr ""
1537
1538 #. type: Plain text
1539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1541 #, no-wrap
1542 msgid ""
1543 "$\\ B<tput -S E<lt>E<lt>!>\n"
1544 "E<gt>\\ B<clear>\n"
1545 "E<gt>\\ B<cup 10 10>\n"
1546 "E<gt>\\ B<bold>\n"
1547 "E<gt>\\ B<!>\n"
1548 msgstr ""
1549
1550 #. type: Plain text
1551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1553 msgid ""
1554 "The foregoing clears the screen, moves the cursor to position (10, 10) and "
1555 "turns on bold (extra bright) mode."
1556 msgstr ""
1557
1558 #. type: TP
1559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1561 #, no-wrap
1562 msgid "B<tput clear cup 10 10 bold>"
1563 msgstr ""
1564
1565 #. type: Plain text
1566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1568 msgid ""
1569 "Perform the same actions as the foregoing \\%\\*(``B<tput -S>\\*('' example."
1570 msgstr ""
1571
1572 #. type: SH
1573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1575 #, no-wrap
1576 msgid "SEE ALSO"
1577 msgstr ""
1578
1579 #. type: Plain text
1580 #: archlinux fedora-44 fedora-rawhide mageia-cauldron
1581 msgid ""
1582 "B<\\%clear>(1), B<\\%stty>(1), B<\\%tabs>(1), B<\\%tset>(1), B<\\"
1583 "%curs_termcap>(3X), B<\\%terminfo>(5), B<\\%user_caps>(5)"
1584 msgstr ""
1585
1586 #. type: TH
1587 #: debian-trixie
1588 #, no-wrap
1589 msgid "2025-02-15"
1590 msgstr ""
1591
1592 #. type: TH
1593 #: debian-trixie mageia-cauldron opensuse-leap-16-1
1594 #, no-wrap
1595 msgid "ncurses 6.5"
1596 msgstr ""
1597
1598 #. type: Plain text
1599 #: debian-trixie
1600 msgid ""
1601 "B<\\%terminfo>(5) discusses terminal capabilities at length and presents a "
1602 "complete list of I<cap-codes>."
1603 msgstr ""
1604
1605 #. type: Plain text
1606 #: debian-trixie mageia-cauldron opensuse-leap-16-1
1607 msgid ""
1608 "Before using a value returned on the standard output, the application should "
1609 "test B<\\%tput 's> exit status to be sure it is 0; see section \\*(``EXIT "
1610 "STATUS\\*('' below."
1611 msgstr ""
1612
1613 #. type: Plain text
1614 #: debian-trixie debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
1615 msgid ""
1616 "Most parameters are numeric. Only a few terminal capabilities require "
1617 "string parameters; B<\\%tput> uses a table to decide which to pass as "
1618 "strings. Normally B<\\%tput> uses B<\\%tparm>(3NCURSES) to perform the "
1619 "substitution. If no parameters are given for the capability, B<\\%tput> "
1620 "writes the string without performing the substitution."
1621 msgstr ""
1622
1623 #. type: Plain text
1624 #: debian-trixie mageia-cauldron opensuse-leap-16-1
1625 msgid ""
1626 "Any delays specified in the entry (for example, when a newline is sent) are "
1627 "set in the terminal driver."
1628 msgstr ""
1629
1630 #. type: Plain text
1631 #: debian-trixie mageia-cauldron opensuse-leap-16-1
1632 msgid ""
1633 "I<Note:> Redirecting the output of \\%\\*(``B<tput init>\\*('' or \\%"
1634 "\\*(``B<tput reset>\\*('' to a file will capture only part of their "
1635 "actions. Changes to the terminal modes are not affected by file descriptor "
1636 "redirection, since the terminal modes are altered via I<\\%ioctl>(2)."
1637 msgstr ""
1638
1639 #. type: Plain text
1640 #: debian-trixie debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
1641 msgid ""
1642 "Besides the pseudo-capabilities (such as B<init>), B<\\%tput> treats the "
1643 "B<lines> and B<cols> I<cap-codes> specially: it may call B<\\"
1644 "%setupterm>(3NCURSES) to obtain the terminal size."
1645 msgstr ""
1646
1647 #. type: Plain text
1648 #: debian-trixie debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
1649 msgid ""
1650 "Some capabilities use string parameters rather than numeric ones. B<\\"
1651 "%tput> employs a built-in table and the presence of parameters in its input "
1652 "to decide how to interpret them, and whether to use B<\\%tparm>(3NCURSES)."
1653 msgstr ""
1654
1655 #. type: TP
1656 #: debian-trixie debian-unstable
1657 #, no-wrap
1658 msgid "I</etc/terminfo>"
1659 msgstr ""
1660
1661 #. type: Plain text
1662 #: debian-trixie debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
1663 msgid ""
1664 "Most implementations that provide support for I<cap-code> operands use the "
1665 "B<\\%tparm>(3NCURSES) function to expand its parameters. That function "
1666 "expects a mixture of numeric and string parameters, requiring B<\\%tput> to "
1667 "know which type to use."
1668 msgstr ""
1669
1670 #. type: Plain text
1671 #: debian-trixie mageia-cauldron opensuse-leap-16-1
1672 msgid ""
1673 "This implementation, unlike others, accepts both I<termcap> and I<\\%term\\"
1674 "%info> I<cap-codes> if I<termcap> support is compiled in. In that case, "
1675 "however, the predefined I<termcap> and I<\\%term\\%info> codes have two "
1676 "ambiguities; I<\\%ncurses> assumes the I<\\%term\\%info> code."
1677 msgstr ""
1678
1679 #. type: Plain text
1680 #: debian-trixie opensuse-leap-16-1
1681 msgid ""
1682 "SVr2 (1984) provided a rudimentary I<tput> that checked the parameter "
1683 "against each predefined capability and returned the corresponding value. "
1684 "This version of I<tput> did not use B<\\%tparm>(3NCURSES) for parameterized "
1685 "capabilities."
1686 msgstr ""
1687
1688 #. type: Plain text
1689 #: debian-trixie
1690 msgid ""
1691 "Keith Bostic refactored BSD I<tput> for shipment in 4.3BSD-Tahoe (1988), "
1692 "then replaced it the next year with a new implementation based on System\\ V "
1693 "I<tput>. Bostic's version similarly accepted some parameters named for I<\\"
1694 "%term\\%info> (pseudo-)capabilities: B<clear>, B<init>, B<\\%longname>, and "
1695 "B<\\%reset>. However, because he had only I<termcap> available, it accepted "
1696 "I<termcap> codes for other capabilities. Also, Bostic's BSD I<tput> did not "
1697 "modify the terminal modes as the earlier BSD I<tset> had done."
1698 msgstr ""
1699
1700 #. type: Plain text
1701 #: debian-trixie
1702 msgid ""
1703 "At the same time, Bostic added a shell script named \\*(``clear\\*('' that "
1704 "used I<tput> to clear the screen. Both of these appeared in 4.4BSD, "
1705 "becoming the \\*(``modern\\*('' BSD implementation of I<tput>."
1706 msgstr ""
1707
1708 #. type: Plain text
1709 #: debian-trixie opensuse-leap-16-1
1710 msgid ""
1711 "B<\\%clear>(1), B<\\%stty>(1), B<\\%tabs>(1), B<\\%tset>(1), B<\\"
1712 "%termcap>(3NCURSES), B<\\%terminfo>(5)"
1713 msgstr ""
1714
1715 #. type: Plain text
1716 #: debian-unstable opensuse-tumbleweed
1717 msgid ""
1718 "SVr2 (1984) provided a rudimentary I<tput> that checked the parameter "
1719 "against each capability name and returned the corresponding value. This "
1720 "version of I<tput> did not use B<\\%tparm>(3NCURSES) for parameterized "
1721 "capabilities."
1722 msgstr ""
1723
1724 #. type: Plain text
1725 #: debian-unstable opensuse-tumbleweed
1726 msgid ""
1727 "B<\\%clear>(1), B<\\%stty>(1), B<\\%tabs>(1), B<\\%tset>(1), B<\\"
1728 "%termcap>(3NCURSES), B<\\%terminfo>(5), B<\\%user_caps>(5)"
1729 msgstr ""
1730
1731 #. type: TH
1732 #: mageia-cauldron
1733 #, no-wrap
1734 msgid "2025-07-05"
1735 msgstr ""
1736
1737 #. type: Plain text
1738 #: mageia-cauldron
1739 msgid ""
1740 "SVr2 (1984) provided a rudimentary I<tput> that checked the parameter "
1741 "against each predefined capability and returned the corresponding value. "
1742 "This version of I<tput> did not use B<\\%tparm>(3X) for parameterized "
1743 "capabilities."
1744 msgstr ""
1745
1746 #. type: TH
1747 #: opensuse-leap-16-1
1748 #, no-wrap
1749 msgid "2025-04-05"
1750 msgstr ""
1751
1752 #. type: Plain text
1753 #: opensuse-leap-16-1
1754 msgid ""
1755 "B<\\%terminfo>(5) discusses terminal capabilities at length and presents a "
1756 "complete list of standard I<cap-codes>."
1757 msgstr ""