# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2026-02-27 19:40+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "tput" msgstr "" #. type: TH #: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-tumbleweed #, no-wrap msgid "2025-11-11" msgstr "" #. type: TH #: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-tumbleweed #, no-wrap msgid "ncurses 6.6" msgstr "" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "User commands" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B<\\%tput> - initialize a terminal, exercise its capabilities, or query I<\\" "%term\\%info> database" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B [B<-v>] [B<-T> I] {I [I .\\|.\\|." "\\&]} .\\|.\\|." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B [B<-v>] [B<-T> I] [B<-x>] B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B [B<-v>] [B<-T> I] B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B [B<-v>] [B<-T> I] B<\\%reset>" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B [B<-v>] [B<-T> I] B<\\%longname>" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B [B<-v>] B<-S>" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B [B<-v>] B<-V>" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B<\\%tput> uses the I<\\%term\\%info> library and database to make terminal-" "specific capabilities and information available to the shell, to initialize " "or reset the terminal, or to report a description of the current (or " "specified) terminal type. Terminal capabilities are accessed by I." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-tumbleweed msgid "" "B<\\%terminfo>(5) discusses terminal capabilities at length and presents a " "complete list of standardized I. B<\\%user_caps>(5) presents " "other widely used but non-standard capabilities." msgstr "" #. "Boolean" + 2n #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When retrieving capability values, the result depends upon the capability's " "type." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Boolean" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B<\\%tput> sets its exit status to B<0> if the terminal possesses I, and B<1> if it does not." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "numeric" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B<\\%tput> writes I's decimal value to the standard output stream " "if defined (B<-1> if it is not) followed by a newline." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "string" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B<\\%tput> writes I's value to the standard output stream if " "defined, without a trailing newline." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-tumbleweed msgid "" "Before using a value returned on the standard output, the application should " "test B<\\%tput>'s exit status to be sure it is 0; see section \\*(``EXIT " "STATUS\\*('' below." msgstr "" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Operands" msgstr "" #. "longname" + 2n + adjustment for PDF #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Generally, an operand is a I, a capability code from the terminal " "database, or a parameter thereto. Three others are specially recognized by " "B<\\%tput>: B, B<\\%reset>, and B<\\%longname>. Although these " "resemble capability codes, they in fact receive special handling; we term " "them \\*(``pseudo-capabilities\\*(''." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "indicates a capability from the terminal database." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If I is of string type and takes parameters, B<\\%tput> interprets " "arguments following I as the parameters, up to the (fixed) " "quantity the capability requires." msgstr "" #. type: Plain text #: archlinux fedora-44 fedora-rawhide mageia-cauldron msgid "" "Most parameters are numeric. Only a few terminal capabilities require " "string parameters; B<\\%tput> uses a table to decide which to pass as " "strings. Normally B<\\%tput> uses B<\\%tparm>(3X) to perform the " "substitution. If no parameters are given for the capability, B<\\%tput> " "writes the string without performing the substitution." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "initializes the terminal. If the terminal database is present and an entry " "for the user's terminal type exists, the following occur." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(1)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B<\\%tput> retrieves the terminal's mode settings. It successively tests " "the file descriptors corresponding to" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "the standard error stream," msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "the standard output stream," msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "the standard input stream, and" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I<\\%/dev/tty>" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "to obtain terminal settings. Having retrieved them, B<\\%tput> remembers " "which descriptor to use for further updates." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(2)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the terminal dimensions cannot be obtained from the operating system, but " "the environment or terminal type database entry describes them, B<\\%tput> " "updates the operating system's notion of them." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(3)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B<\\%tput> updates the terminal modes." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Tab expansion is turned on or off per the specification in the entry, and" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "if tabs are not expanded, standard tabs (every 8 spaces) are set." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(4)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If initialization capabilities, detailed in subsection \\*(``Tabs and " "Initialization\\*('' of B<\\%terminfo>(5), are present, B<\\%tput> writes " "them to the standard output stream." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(5)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B<\\%tput> flushes the standard output stream." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If an entry lacks the information needed for an activity above, that " "activity is silently skipped." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "re-initializes the terminal. A reset differs from initialization in two " "ways." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B<\\%tput> sets the terminal modes to a \\*(``sane\\*('' state," msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "enabling canonical (\\*(``cooked\\*('') and echo modes," msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "disabling cbreak and raw modes," msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "enabling newline translation, and" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "setting any special input characters to their default values." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If any reset capabilities are defined for the terminal type, B<\\%tput> " "writes them to the output stream. Otherwise, B<\\%tput> uses any defined " "initialization capabilities. Reset capabilities are detailed in subsection " "\\*(``Tabs and Initialization\\*('' of B<\\%terminfo>(5)." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A I<\\%term\\%info> entry begins with one or more names by which an " "application can refer to the entry, before the list of terminal " "capabilities. The names are separated by \\*(``|\\*('' characters. X/Open " "Curses terms the last name the \\*(``long name\\*('', and indicates that it " "may include blanks." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B<\\%tic> warns if the last name does not include blanks, to accommodate old " "I<\\%term\\%info> entries that treated the long name as an optional " "feature. The long name is often referred to as the description field." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the terminal database is present and an entry for the user's terminal " "type exists, B<\\%tput> reports its description to the standard output " "stream, without a trailing newline. See B<\\%terminfo>(5)." msgstr "" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-tumbleweed msgid "" "I Redirecting the output of \\*(``B\\*('' or \\*(``B\\*('' to a file will capture only part of their actions. Changes to " "the terminal modes are not affected by file descriptor redirection, since " "the terminal modes are altered via I<\\%ioctl>(2)." msgstr "" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Aliases" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If B<\\%tput> is invoked via link with any of the names B, B, " "or B<\\%reset>, it operates as if run with the corresponding " "(pseudo-)capability operand. For example, executing a link named B<\\" "%reset> that points to B<\\%tput> has the same effect as \\%\\*(``B\\*(''." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This feature was introduced by I<\\%ncurses> 5.2 in 2000. It is rarely used." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<\\%clear>" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "is a separate program, which is both smaller and more frequently executed." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "has the same name as another program in widespread use." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<\\%reset>" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "is provided by the B<\\%tset>(1) utility (also via a link named B<\\%reset>)." msgstr "" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Terminal Size" msgstr "" #. type: Plain text #: archlinux fedora-44 fedora-rawhide mageia-cauldron msgid "" "Besides the pseudo-capabilities (such as B), B<\\%tput> treats the " "B and B I specially: it may call B<\\%setupterm>(3X) " "to obtain the terminal size." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "First, B<\\%tput> attempts to obtain these capabilities from the terminal " "database. This generally fails for terminal emulators, which lack a fixed " "window size and thus omit the capabilities." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "It then asks the operating system for the terminal's size, which generally " "works, unless the connection is via a serial line that does not support " "\\*(``NAWS\\*('': negotiations about window size." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Finally, it inspects the environment variables I and I<\\%COLUMNS>, " "which may override the terminal size." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the B<-T> option is given, B<\\%tput> ignores the environment variables " "by calling B<\\%use_tioctl(TRUE)>, relying upon the operating system (or, " "ultimately, the terminal database)." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "OPTIONS" msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<-S>" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "retrieves more than one capability per invocation of B<\\%tput>. The " "capabilities must be passed to B<\\%tput> from the standard input stream " "instead of from the command line (see section \\*(``EXAMPLES\\*('' below). " "Only one I is allowed per line. The B<-S> option changes the " "meanings of the B<0> and B<1> exit statuses (see section \\*(``EXIT " "STATUS\\*('' below)." msgstr "" #. type: Plain text #: archlinux fedora-44 fedora-rawhide mageia-cauldron msgid "" "Some capabilities use string parameters rather than numeric ones. B<\\" "%tput> employs a built-in table and the presence of parameters in its input " "to decide how to interpret them, and whether to use B<\\%tparm>(3X)." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<-T\\ >I" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "indicates the terminal's I. Normally this option is unnecessary, " "because a default is taken from the I environment variable. If " "specified, the environment variables I and I<\\%COLUMNS> are also " "ignored." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<-v>" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "causes B<\\%tput> to operate verbosely, reporting warnings." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<-V>" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "reports the version of I<\\%ncurses> associated with B<\\%tput>, and exits " "with a successful status." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<-x>" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "prevents \\%\\*(``B\\*('' from attempting to clear the " "scrollback buffer." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXIT STATUS" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Normally, one should interpret B<\\%tput>'s exit statuses as follows." msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Status" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Meaning When -S Not Specified" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "_" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "0" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Boolean or string capability present" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "1" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Boolean or numeric capability absent" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "2" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "usage error or no terminal type specified" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "3" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "unrecognized terminal type" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "4" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "unrecognized capability code" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "E4" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "system error (4 + B)" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "When the B<-S> option is used, some statuses change meanings." msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Meaning When -S Specified" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "all operands interpreted" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "unused" msgstr "" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "some operands not interpreted" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ENVIRONMENT" msgstr "" #. "COLUMNS" + 2n #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B<\\%tput> reads up to three environment variables if the B<-T> option is " "not specified." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "specifies the width of the screen in characters." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "specifies the height of the screen in characters." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "denotes the terminal type. Each terminal type is distinct, though many are " "similar." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "FILES" msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "I" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "tab stop initialization database" msgstr "" #. type: TP #: archlinux fedora-44 fedora-rawhide mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "I" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "compiled terminal description database" msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "PORTABILITY" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Over time I<\\%ncurses> B<\\%tput> has differed from that of System\\ V in " "two important respects, one now mostly historical." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "\\%\\*(``B I\\*('' writes to the standard output, which need " "not be a terminal device. However, the operands that manipulate terminal " "modes might not use the standard output." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "System\\ V I's B and B<\\%reset> operands use logic from 4.1cBSD " "I, manipulating terminal modes. It checks the same file descriptors " "(and I<\\%/dev/tty>) for association with a terminal device as I<\\" "%ncurses> now does, and if none are, finally assumes a 1200 baud terminal. " "When updating terminal modes, it ignores errors." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Until I<\\%ncurses> 6.1 (see section \\*(``HISTORY\\*('' below), B<\\%tput> " "did not modify terminal modes. It now employs a scheme similar to System\\ " "V, using functions shared with B<\\%tset> (and ultimately based on 4.4BSD " "I). If it is not able to open a terminal (for instance, when run by " "I(1)), B<\\%tput> exits with an error status." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "System\\ V I assumes that the type of a I operand is numeric " "if all the characters of its value are decimal numbers; if they are not, it " "treats I as a string capability." msgstr "" #. type: Plain text #: archlinux fedora-44 fedora-rawhide mageia-cauldron msgid "" "Most implementations that provide support for I operands use the " "B<\\%tparm>(3X) function to expand its parameters. That function expects a " "mixture of numeric and string parameters, requiring B<\\%tput> to know which " "type to use." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I<\\%ncurses> B<\\%tput> uses a table to determine the parameter types for " "the standard I operands, and an internal function to analyze " "nonstandard I operands." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "While more reliable than System\\ V's utility, a portability problem is " "introduced by this analysis. An OpenBSD developer adapted the internal " "library function from I<\\%ncurses> to port NetBSD's I-based " "I to I<\\%term\\%info>, and modified it to interpret multiple I (and parameters) on the command line. Portable applications should " "not rely upon this feature; I<\\%ncurses> offers it to support applications " "written specifically for OpenBSD." msgstr "" #. generic #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide opensuse-tumbleweed msgid "" "I<\\%ncurses>'s implementation of I, unlike others, accepts both " "I and I<\\%term\\%info> I if I support is " "compiled in. In that case, however, I and I<\\%term\\%info> codes " "have two ambiguities; I<\\%ncurses> assumes the I<\\%term\\%info> code." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I B
means B<\\%delete_line> to I but B<\\" "%parm_delete_line> to I<\\%term\\%info>. I uses the code B
for " "B<\\%parm_delete_line>. I<\\%term\\%info> uses the code B for B<\\" "%delete_line>." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I B means B<\\%exit_delete_mode> to I but B<\\" "%clr_eos> to I<\\%term\\%info>. I uses the code B for B<\\" "%clr_eos>. I<\\%term\\%info> uses the code B for B<\\" "%exit_delete_mode>." msgstr "" #. longname was added in October 1989. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B<\\%longname> operand, B<-S> option, and the parameter-substitution " "features used in the B example below, were not supported in AT&T/USL " "I before SVr4 (1989). Later, 4.3BSD-Reno (1990) added support for " "B<\\%longname>, and in 1994, NetBSD added support for the parameter-" "substitution features." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "IEEE Std 1003.1/The Open Group Base Specifications Issue\\ 7 (POSIX.1-2008) " "documents only the B, B, and B<\\%reset> operands. A few " "observations of interest arise from that selection." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I<\\%ncurses> supports B as it does any other standard I. " "The others (B and B<\\%longname>) do not correspond to terminal " "capabilities." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I on SVr4-based systems such as Solaris, IRIX64, and HP-UX, as " "well as others such as AIX and Tru64, also support standard I " "operands." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A few platforms such as FreeBSD recognize I codes rather than I<\\" "%term\\%info> capability codes in their respective I commands. Since " "2010, NetBSD's I uses I<\\%term\\%info> codes. Before that, it (like " "FreeBSD) recognized I codes." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Beginning in 2021, FreeBSD uses I<\\%ncurses> B, configured for both " "I<\\%term\\%info> (tested first) and I (as a fallback)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Because (apparently) all I Unix systems support the full set of " "capability codes, the reason for documenting only a few may not be apparent." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "X/Open Curses Issue\\ 7 documents B differently, with I and " "the other features used in this implementation." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "That is, there are two standards for I: POSIX (a subset) and X/Open " "Curses (the full implementation). POSIX documents a subset to avoid the " "complication of including X/Open Curses and the terminal capability database." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "While it is certainly possible to write a I program without using " "I, no system with a I implementation provides a I " "utility that does not also support standard I." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "X/Open Curses Issue\\ 7 (2009) is the first version to document utilities. " "However that part of X/Open Curses does not follow existing practice (that " "is, System\\ V I behavior)." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "It assigns exit status 4 to \\*(``invalid operand\\*('', which may have the " "same meaning as \\*(``unknown capability\\*(''. For instance, the source " "code for Solaris I uses the term \\*(``invalid\\*('' in this case." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "It assigns exit status 255 to a numeric variable that is not specified in " "the I<\\%term\\%info> database. That likely is a documentation error, " "mistaking the \\*(``-1\\*('' written to the standard output to indicate an " "absent or canceled numeric capability for an (unsigned) exit status." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The various System\\ V implementations (AIX, HP-UX, Solaris) use the same " "exit statuses as I<\\%ncurses>." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "NetBSD I documents exit statuses that correspond to neither I<\\" "%ncurses> nor X/Open Curses." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "" #. It also exited with backwards exit status (1 on success, 0 on #. failure), and was characterized by Bostic in 1988 as "pretty #. unreasonable". #. See Spinellis's "unix-history-repo" on GitHub. #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Bill Joy wrote a I command during development of 4BSD in October " "1980. This initial version only cleared the screen, and did not ship with " "official distributions." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "System\\ V developed a different I command." msgstr "" #. type: Plain text #: archlinux fedora-44 fedora-rawhide msgid "" "SVr2 (1984) provided a rudimentary I that checked the parameter " "against each capability name and returned the corresponding value. This " "version of I did not use B<\\%tparm>(3X) for parameterized " "capabilities." msgstr "" #. SVr3 released in 1987, not 1985. #. https://unix.org/what_is_unix/history_timeline.html #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "SVr3 (1987) replaced that with a more extensive program whose support for " "B and B<\\%reset> operands (more than half the program) incorporated " "the B<\\%reset> feature of BSD I written by Eric Allman." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "SVr4 (1989) added color initialization by using the B<\\%orig_colors> " "(B) and B<\\%orig_pair> (B) capabilities in its B logic." msgstr "" #. https://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD-Reno/src/usr.bin/tput/tput.c #. https://minnie.tuhs.org/cgi-bin/utree.pl?file=Net2/usr/src/usr.bin/tput/tput.c #. https://minnie.tuhs.org/cgi-bin/utree.pl?file=4.4BSD/usr/src/usr.bin/tput/tput.c #. https://minnie.tuhs.org/cgi-bin/utree.pl?file=4.3BSD-Reno/src/usr.bin/tput/clear.sh #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Keith Bostic refactored BSD I for shipment in 4.3BSD-Reno (1990), " "making it follow the interface of System\\ V I by accepting some " "parameters named for I<\\%term\\%info> (pseudo-)capabilities: B, " "B, B<\\%longname>, and B<\\%reset>. However, because he had only " "I available, it accepted I codes for other capabilities. " "Also, Bostic's BSD I did not modify the terminal modes as the earlier " "BSD I had done. At the same time, Bostic added a shell script named " "\\*(``clear\\*('' that used I to clear the screen. These became the " "\\*(``modern\\*('' BSD implementation of I." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The origin of I<\\%ncurses> B<\\%tput> lies outside both System\\ V and BSD, " "in Ross Ridge's I<\\%mytinfo> package, published on I in " "December 1992. Ridge's program made more sophisticated use of the terminal " "capabilities than the BSD program. Eric Raymond used that I program " "(and other parts of I<\\%mytinfo>) in I<\\%ncurses> in June 1995. " "Incorporating the portions dealing with terminal capabilities almost without " "change, Raymond made improvements to the way command-line parameters were " "handled." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Before I<\\%ncurses> 6.1 (2018), its B<\\%tset> and B<\\%tput> utilities " "differed." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B<\\%tset> was more effective, resetting the terminal's modes and special " "input characters." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On the other hand, B<\\%tset>'s repertoire of terminal capabilities for " "resetting the terminal was more limited; it had only equivalents of B<\\" "%reset_1string> (B), B<\\%reset_2string> (B), and B<\\%reset_file> " "(B), and not the tab stop and margin update features of B<\\%tput>." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I<\\%reset> program is traditionally an alias for B<\\%tset> due to its " "ability to reset the terminal's modes and special input characters." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "As of I<\\%ncurses> 6.1, the \\*(``reset\\*('' features of the two programs " "are (mostly) the same. Two minor differences remain." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When issuing a reset, the B<\\%tset> program checks whether the device " "appears to be a pseudoterminal (as might be used by a terminal emulator " "program), and, if it does not, waits one second in case it is communicating " "with a hardware terminal." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The two programs write the terminal initialization strings to different " "streams; that is, standard error for B<\\%tset> and standard output for B<\\" "%tput>." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Initialize the terminal according to the type of terminal in the I " "environment variable. If the system does not reliably initialize the " "terminal upon login, this command can be included in I<\\%$HOME/.profile> " "after exporting the I environment variable." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Reset an AT&T 5620 terminal, overriding the terminal type in the I " "environment variable." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Set cursor to normal visibility." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Move the cursor to line 0, column 0: the upper left corner of the screen, " "usually known as the \\*(``home\\*('' cursor position." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Clear the screen: write the B<\\%clear_screen> capability's value to the " "standard output stream." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Report the number of columns used by the current terminal type." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Report the number of columns used by an ADM-3A terminal." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Set shell variables to capability values: B and B, to begin " "and end, respectively, stand-out mode for the terminal. One might use these " "to present a prompt." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "printf \"${strong}Username:${normal} \"\n" msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Indicate via exit status whether the terminal is a hard copy device." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Move the cursor to line 23, column 4." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Report the value of the B<\\%cursor_address> (B) capability (used for " "cursor movement), with no parameters substituted." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Report the I<\\%term\\%info> database's description of the terminal type " "specified in the I environment variable." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Process multiple capabilities. The B<-S> option can be profitably used with " "a shell \\*(``here document\\*(''." msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "$\\ BE!>\n" "E\\ B\n" "E\\ B\n" "E\\ B\n" "E\\ B\n" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The foregoing clears the screen, moves the cursor to position (10, 10) and " "turns on bold (extra bright) mode." msgstr "" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Perform the same actions as the foregoing \\%\\*(``B\\*('' example." msgstr "" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "" #. type: Plain text #: archlinux fedora-44 fedora-rawhide mageia-cauldron msgid "" "B<\\%clear>(1), B<\\%stty>(1), B<\\%tabs>(1), B<\\%tset>(1), B<\\" "%curs_termcap>(3X), B<\\%terminfo>(5), B<\\%user_caps>(5)" msgstr "" #. type: TH #: debian-trixie #, no-wrap msgid "2025-02-15" msgstr "" #. type: TH #: debian-trixie mageia-cauldron opensuse-leap-16-1 #, no-wrap msgid "ncurses 6.5" msgstr "" #. type: Plain text #: debian-trixie msgid "" "B<\\%terminfo>(5) discusses terminal capabilities at length and presents a " "complete list of I." msgstr "" #. type: Plain text #: debian-trixie mageia-cauldron opensuse-leap-16-1 msgid "" "Before using a value returned on the standard output, the application should " "test B<\\%tput 's> exit status to be sure it is 0; see section \\*(``EXIT " "STATUS\\*('' below." msgstr "" #. type: Plain text #: debian-trixie debian-unstable opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Most parameters are numeric. Only a few terminal capabilities require " "string parameters; B<\\%tput> uses a table to decide which to pass as " "strings. Normally B<\\%tput> uses B<\\%tparm>(3NCURSES) to perform the " "substitution. If no parameters are given for the capability, B<\\%tput> " "writes the string without performing the substitution." msgstr "" #. type: Plain text #: debian-trixie mageia-cauldron opensuse-leap-16-1 msgid "" "Any delays specified in the entry (for example, when a newline is sent) are " "set in the terminal driver." msgstr "" #. type: Plain text #: debian-trixie mageia-cauldron opensuse-leap-16-1 msgid "" "I Redirecting the output of \\%\\*(``B\\*('' or \\%" "\\*(``B\\*('' to a file will capture only part of their " "actions. Changes to the terminal modes are not affected by file descriptor " "redirection, since the terminal modes are altered via I<\\%ioctl>(2)." msgstr "" #. type: Plain text #: debian-trixie debian-unstable opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Besides the pseudo-capabilities (such as B), B<\\%tput> treats the " "B and B I specially: it may call B<\\" "%setupterm>(3NCURSES) to obtain the terminal size." msgstr "" #. type: Plain text #: debian-trixie debian-unstable opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Some capabilities use string parameters rather than numeric ones. B<\\" "%tput> employs a built-in table and the presence of parameters in its input " "to decide how to interpret them, and whether to use B<\\%tparm>(3NCURSES)." msgstr "" #. type: TP #: debian-trixie debian-unstable #, no-wrap msgid "I" msgstr "" #. type: Plain text #: debian-trixie debian-unstable opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Most implementations that provide support for I operands use the " "B<\\%tparm>(3NCURSES) function to expand its parameters. That function " "expects a mixture of numeric and string parameters, requiring B<\\%tput> to " "know which type to use." msgstr "" #. type: Plain text #: debian-trixie mageia-cauldron opensuse-leap-16-1 msgid "" "This implementation, unlike others, accepts both I and I<\\%term\\" "%info> I if I support is compiled in. In that case, " "however, the predefined I and I<\\%term\\%info> codes have two " "ambiguities; I<\\%ncurses> assumes the I<\\%term\\%info> code." msgstr "" #. type: Plain text #: debian-trixie opensuse-leap-16-1 msgid "" "SVr2 (1984) provided a rudimentary I that checked the parameter " "against each predefined capability and returned the corresponding value. " "This version of I did not use B<\\%tparm>(3NCURSES) for parameterized " "capabilities." msgstr "" #. type: Plain text #: debian-trixie msgid "" "Keith Bostic refactored BSD I for shipment in 4.3BSD-Tahoe (1988), " "then replaced it the next year with a new implementation based on System\\ V " "I. Bostic's version similarly accepted some parameters named for I<\\" "%term\\%info> (pseudo-)capabilities: B, B, B<\\%longname>, and " "B<\\%reset>. However, because he had only I available, it accepted " "I codes for other capabilities. Also, Bostic's BSD I did not " "modify the terminal modes as the earlier BSD I had done." msgstr "" #. type: Plain text #: debian-trixie msgid "" "At the same time, Bostic added a shell script named \\*(``clear\\*('' that " "used I to clear the screen. Both of these appeared in 4.4BSD, " "becoming the \\*(``modern\\*('' BSD implementation of I." msgstr "" #. type: Plain text #: debian-trixie opensuse-leap-16-1 msgid "" "B<\\%clear>(1), B<\\%stty>(1), B<\\%tabs>(1), B<\\%tset>(1), B<\\" "%termcap>(3NCURSES), B<\\%terminfo>(5)" msgstr "" #. type: Plain text #: debian-unstable opensuse-tumbleweed msgid "" "SVr2 (1984) provided a rudimentary I that checked the parameter " "against each capability name and returned the corresponding value. This " "version of I did not use B<\\%tparm>(3NCURSES) for parameterized " "capabilities." msgstr "" #. type: Plain text #: debian-unstable opensuse-tumbleweed msgid "" "B<\\%clear>(1), B<\\%stty>(1), B<\\%tabs>(1), B<\\%tset>(1), B<\\" "%termcap>(3NCURSES), B<\\%terminfo>(5), B<\\%user_caps>(5)" msgstr "" #. type: TH #: mageia-cauldron #, no-wrap msgid "2025-07-05" msgstr "" #. type: Plain text #: mageia-cauldron msgid "" "SVr2 (1984) provided a rudimentary I that checked the parameter " "against each predefined capability and returned the corresponding value. " "This version of I did not use B<\\%tparm>(3X) for parameterized " "capabilities." msgstr "" #. type: TH #: opensuse-leap-16-1 #, no-wrap msgid "2025-04-05" msgstr "" #. type: Plain text #: opensuse-leap-16-1 msgid "" "B<\\%terminfo>(5) discusses terminal capabilities at length and presents a " "complete list of standard I." msgstr ""