Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
setterm(1)
Edit
PageHistory
Diff
Info
LikePages
SETTERM !!!SETTERM NAME SYNOPSIS DESCRIPTION OPTIONS SEE ALSO BUGS ---- !!NAME setterm - set terminal attributes !!SYNOPSIS __setterm__ [[__options__] !!DESCRIPTION __setterm__ writes to standard output a character string that will invoke the specified terminal capabilities. Where possible ''terminfo'' is consulted to find the string to use. Some options however (marked ''terminfo__(5) capability. In this case, if the terminal type is __ !!OPTIONS For boolean options (__on__ or __off__), the default is __on__. For conciseness, an ''8-color'' below is __black__, __red__, __green__, __yellow__, __blue__, __magenta__, __cyan__, or __white__. A ''16-color'' is an ''8-color'', __grey__, or __bright__ followed by __red__, __green__, __yellow__, __blue__, __magenta__, __cyan__, or __white__. The various color options may be set independently, at least at virtual consoles, though the results of setting multiple modes (for example, __-underline__ and __-half-bright__) are hardware-dependent. __-term__ terminal_name Overrides the TERM environment variable. __-reset__ Displays the terminal reset string, which typically resets the terminal to its power on state. __-initialize__ Displays the terminal initialization string, which typically sets the terminal's rendering options, and other attributes to the default values. __-cursor__ [[__on__|__off__] Turns the terminal's cursor on or off. __-repeat__ [[__on__|__off__] (virtual consoles only) Turns keyboard repeat on or off. __-appcursorkeys__ [[__on__|__off__] (virtual consoles only) Sets Cursor Key Application Mode on or off. When on, ESC O A, ESC O B, etc. will be sent for the cursor keys instead of ESC [[ A, ESC [[ B, etc. See the __-linewrap__ [[__on__|__off__] (virtual consoles only) Turns automatic line-wrapping on or off. __-default__ Sets the terminal's rendering options to the default values. __-foreground__ ''8-color''|__default__ (virtual consoles only) Sets the foreground text color. __-background__ ''8-color''|__default__ (virtual consoles only) Sets the background text color. __-ulcolor__ ''16-color'' (virtual consoles only) Sets the color for underlined characters. __-hbcolor__ ''16-color'' (virtual consoles only) Sets the color for half-bright characters. __-inversescreen__ [[__on__|__off__] (virtual consoles only) Inverts the screen colors. Foreground and background are swapped, as are underline and half-brightness. __-bold__ [[__on__|__off__] Turns bold (extra bright) mode on or off. Except at a virtual console, __-bold off__ turns off all attributes (bold, half-brightness, blink, reverse). __-half-bright__ [[__on__|__off__] Turns dim (half-brightness) mode on or off (see __-hbcolor__). Except at a virtual console, __-half-bright off__ turns off all attributes (bold, half-brightness, blink, reverse). __-blink__ [[__on__|__off__] Turns blink mode on or off. Except at a virtual console, __-blink off__ turns off all attributes (bold, half-brightness, blink, reverse). __-reverse__ [[__on__|__off__] Turns reverse video mode on or off. Except at a virtual console, __-reverse off__ turns off all attributes (bold, half-brightness, blink, reverse). __-underline__ [[__on__|__off__] Turns underline mode on or off (see __-ulcolor__). __-store__ (virtual consoles only) Stores the terminal's current rendering options as the default values. __-clear__ [[__all__] Clears the screen and clear__(1). __-clear rest__ Clears from the current cursor position to the end of the screen. __-tabs__ [[tab1 tab2 tab3 ...] (virtual consoles only) Sets tab stops at the given horizontal cursor positions, in the range 1-160. Without arguments, shows the current tab stop settings. __-clrtabs__ [[tab1 tab2 tab3 ...] (virtual consoles only) Clears tab stops from the given horizontal cursor positions, in the range 1-160. Without arguments, clears all tab stops. __-regtabs__ [[1-160] (virtual consoles only) Clears all tab stops, then sets a regular tab stop pattern, with one tab every specified number of positions. Without an argument, defaults to 8. __-blank__ [[0-60] (virtual consoles only) Sets the interval of inactivity, in minutes, after which the screen will be automatically blanked (using APM if available). Without an argument, defaults to 0 (disable console blanking). __-dump__ [[1-NR_CONS] Writes a snapshot of the given virtual console (with attributes) to the file specified in the __-file__ option, overwriting its contents; the default is screen.dump. Without an argument, dumps the current virtual console. Overrides __-append__. __-append__ [[1-NR_CONS] Like __-dump__, but appends to the snapshot file instead of overwriting it. Only works if no __-dump__ options are given. __-file__ dumpfilename Sets the snapshot file name for any __-dump__ or __-append__ options on the same command line. If this option is not present, the default is screen.dump in the current directory. __-msg__ [[__on__|__off__] (virtual consoles only) Enables or disables the sending of kernel __printk()__ messages to the console. __-msglevel__ 1-8 (virtual consoles only) Sets the console logging level for kernel __printk()__ messages. All messages strictly more important than this will be printed, so a logging level of 0 has the same effect as __-msg on__ and a logging level of 8 will print all kernel messages. klogd(8) may be a more convenient interface to the logging of kernel messages. __-powersave on__|__vsync__ Puts the monitor into VESA vsync suspend mode. __-powersave hsync__ Puts the monitor into VESA hsync suspend mode. __-powersave powerdown__ Puts the monitor into VESA powerdown mode. __-powersave__ [[__off__] Turns off monitor VESA powersaving features. __-powerdown__ [[0-60] Sets the VESA powerdown interval in minutes. Without an argument, defaults to 0 (disable powerdown). If the console is blanked or the monitor is in suspend mode, then the monitor will go into vsync suspend mode or powerdown mode respectively after this period of time has elapsed. __-blength__ [[0-2000] Sets the bell duration in milliseconds. Without an argument, defaults to 0. __-bfreq__ [[freqnumber] Sets the bell frequency in Hz. Without an argument, defaults to 0. !!SEE ALSO tput(1), stty(1), terminfo(5), tty(4) !!BUGS Differences between the Minix and Linux versions are not documented. ----
One page links to
setterm(1)
:
Man1s
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.