【linux命令】setterm控制终端属性命令(中英文)

2018年03月23日 17:13:44 阅读数:489 标签: linux 更多

个人分类: linux
摘自:https://blog.csdn.net/u010168781/article/details/79670282
 
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010168781/article/details/79670282

setterm中文

SETTERM(1) 用户命令 SETTERM(1)

名字 
setterm - 设置终端属性

概要 
setterm [选项]

描述 
setterm向终端写一个字符串到标准输出,调用终端的特定功能。在虚拟终端上使用,将会改变虚拟终端的输出特性。不支持的选项将被忽略。

选项 
对于布尔选项(on或off),默认设置为on。

   简洁8色如下:黑色,红色,绿色,黄色,蓝色,洋红色,青色,或白色
black, red, green, yellow, blue, magenta, cyan, or white. 16色是8色加上灰度或明暗,在红色、绿色、黄色、蓝色、洋红色、青色或白色之后加上灰度或明暗
red, green, yellow, blue, magenta, cyan, or white + grey 或 bright 各种颜色选项可以独立设置,其中设置多个模式的结果(例如,下划线和-半明亮)是硬件相关的。 -term 终端名字
覆盖环境变量TERM. -reset 显示终端重置字符串,它通常将终端重新设置为电源的状态??(测试未见任何效果) -initialize 清空屏幕。 -cursor [on|off] 显示或关闭光标(测试时,没有效果) -repeat [on|off] 只在虚拟主机上有效:键盘打开或关闭(测试时,显示不支持) -appcursorkeys [on|off] 只在虚拟主机上有效
将光标键应用程序模式设置为on或off. -linewrap [on|off] (virtual consoles only)
自动换行或关闭。 -default:将终端的呈现选项设置为默认值。 -foreground -color|default 设置前景文本颜色 -background -color|default 设置背景文本颜色。 -ulcolor -color (virtual consoles only)为加下划线的字符设置颜色。 -hbcolor -color (virtual consoles only)设置半明字符的颜色。 -inversescreen [on|off] (virtual consoles only)颠倒的屏幕颜色。前台和后台交换,下划线和半亮交换。 -bold [on|off] 打开或关闭粗体(额外亮度)模式 -half-bright [on|off]将昏暗(半亮度)模式开启或关闭 -blink [on|off]开启或关闭闪烁模式 -reverse [on|off]打开或关闭反向视频模式,字符和字符背景交换颜色(-inversescreen是全屏交换) -underline [on|off]在开启或关闭状态下显示下划线模式 -store 存储终端当前的呈现选项 -clear all:同命令clear -clear rest:测试时报参数错误 -tabs [tab1 tab2 tab3 ...] 不带参数,测试结果如下。带参数没效果。
root@myzr:~# setterm -tabs T T T T T T T T T T T -clrtabs [tab1 tab2 tab3 ...] 测试时报终端不支持:setterm: terminal xterm does not support --clrtabs -regtabs [-] 测试时报终端不支持:setterm: terminal xterm does not support --regtabs -blank [-|force|poke] 设置不活动的时间间隔,在几分钟内,之后屏幕将自动变白(如果可用的话,使用APM)
force:即使按键被按下,也要保持屏幕空白。
poke:开启屏幕 -dump [-NR_CONS] 将给定虚拟控制台(带有属性)的快照写入-file选项中指定的文件,覆盖该文件,默认文件是screen.dump -append [-NR_CONS] 类似-dump,但是将其附加到快照文件,而不是重写它。 -file dump文件名 -msg [on|off] 启用或禁用发送内核printk()消息到控制台。 -msglevel - 设置内核打印等级。 -powersave on|vsync 将监视器放入VESA vsync挂起模式。测试无效 -powersave hsync 将监视器放入VESA hsync挂起模式。测试无效 -powersave powerdown 将监视器放入VESA关闭模式。测试无效 -powersave [off]节能模式。测试无效 -powerdown [-]测试无效 -blength [-]:以毫秒为间隔设置钟的持续时间,没有参数,默认是0。测试时不支持 -bfreq [freqnumber] 将钟频率设置为赫兹,没有参数,默认是0。测试时不支持 -version 输出版本信息 -help 输出帮助信息

参见其他命令: 
tput(1), stty(1), terminfo(5), tty(4)

有效信息: 
setterm命令是 util-linux包的你部分。

util-linux 2000年1月 SETTERM(1)

setterm 英文

SETTERM(1) User Commands SETTERM(1)

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 “virtual consoles only” below) do not correspond to a ter‐ 
minfo(5) capability. In this case, if the terminal type is “con” or “linux” the string that invokes the specified capabilities on 
the PC Minix virtual console driver is output. Options that are not implemented by the terminal are ignored.

OPTIONS 
For boolean options (on or off), the default is on.


   For conciseness, an -color below is black, red, green, yellow, blue, magenta, cyan, or white.

    A -color is an -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 "vi and Cursor-Keys" section of the Text-Terminal-HOWTO for how this can cause problems for vi
users. -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 -color|default (virtual consoles only)
Sets the foreground text color. -background -color|default (virtual consoles only)
Sets the background text color. -ulcolor -color (virtual consoles only)
Sets the color for underlined characters. -hbcolor -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-bright‐
ness, blink, reverse). -underline [on|off]
Turns underline mode on or off (see -ulcolor). -store (virtual consoles only)
Stores the terminal's current rendering options (foreground and background colors) as the values to be used at reset-to-
default. -clear [all]
Clears the screen and "homes" the cursor, as clear(). -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 -. 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 -. Without arguments, clears all tab stops. -regtabs [-] (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 . -blank [-|force|poke] (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, gets the blank status (returns which vt was blanked or zero for unblanked vt). The force option keeps screen blank even if a key is pressed. The poke option unblank the screen. -dump [-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 [-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. A path name that exceeds system maximum will be truncated, see PATH_MAX
from linux/limits.h for the value. -msg [on|off] (virtual consoles only)
Enables or disables the sending of kernel printk() messages to the console. -msglevel - (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 has the same effect as -msg on and a logging level of will print all kernel messages. klogd() 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 [-]
Sets the VESA powerdown interval in minutes. Without an argument, defaults to (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 [-]
Sets the bell duration in milliseconds. Without an argument, defaults to . -bfreq [freqnumber]
Sets the bell frequency in Hz. Without an argument, defaults to . -version
Output version information and exit. -help Output help screen and exit.

SEE ALSO 
tput(1), stty(1), terminfo(5), tty(4)

BUGS 
Differences between the Minix and Linux versions are not documented.

AVAILABILITY 
The setterm command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.

util-linux January 2000 SETTERM(1)

【linux命令】setterm控制终端属性命令(中英文)的更多相关文章

  1. Linux终端打印命令使用介绍

    常用linux打印命令 日常使用中或shell脚本中linux终端打印命令有echo和printf.  echo命令 功能说明:显示文字.语 法:echo [-ne][字符串]或 echo [--he ...

  2. linux:终端常用命令 + vi命令修改文件及保存 方法

    首先介绍一下Ubuntu下各个目录的一般作用: /  这就是根目录,一台电脑有且只有一个根目录,所有的文件都是从这里开始的.举个例子:当你在终端里输入“/home”,你其实是在告诉电脑,先从/(根目录 ...

  3. linux终端命令(四)系统信息相关命令(五)其他命令

    四.系统信息相关命令 时间和日期 date cal 磁盘和目录空间 df du 进程信息 ps top kill 1.时间和日期 序号 命令 作用 01 cal 查看日历,-y选项可以查看一年的日历 ...

  4. linux nohup命令实现退出终端后程序继续后台运行

    Unix/Linux下一般想让某个程序在后台运行,很多都是使用&在程序结尾来让程序自动运行:但如果要想在退出终端后,程序依然还在后台运行,则要用nohup与&组合来实现. nohup ...

  5. linux下GPRS模块使用AT命令实现拨接电话,发中英文短信

    开发板           :fl2440 cpu                :  s3c2440(arm9) 开发模块       :A7(GPRS/GPS) 远程登陆软件:PUTTY **** ...

  6. Linux下使命令不受终端断开的影响,保持在后台运行的几种方法及原理

    摘自https://www.ibm.com/developerworks/cn/linux/l-cn-nohup/ 记录一下Linux下使命令不受终端断开的影响,保持在后台运行的几个方法及其原理.当用 ...

  7. 终端的乐趣--Linux下有趣的终端命令或者工具【转】

    转自:https://blog.csdn.net/gatieme/article/details/52144603 版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原 ...

  8. Linux切换用户时报错/.bash_profile: Permission denied,命令行(终端提示符)出现-bash-4.2$

    Linux切换用户时报错/.bash_profile: Permission denied,命令行(终端提示符)出现-bash-4.2$ 利用su - 切换用户时,发现有一个用户切时出现如下情况 [r ...

  9. Linux命令格式、终端类型和获取帮助的方法

    Linux用户类型 Root用户:超级管理员,权限很大 普通用户:权限有限 终端 terminal 终端类型 物理终端:鼠标.键盘.显示器 虚拟终端:软件模拟出来的终端 控制台终端: /dev/con ...

随机推荐

  1. 对Servlet规范的蜻蜓点水

    现在我们大家基本都用struts或springmvc进行java web的开发,但我们都知道java web的核心技术是jsp servlet javabean的组合.因此很有必要知道servlet规 ...

  2. 【转】Jmeter笔记:响应断言详解

    平时我们使用jmeter进行性能测试时,经常会用到断言.jmeter提供了很多种断言,本来想全都写一下,但发现每一个断言里面的东西都很多,所以就先写一下我们经常使用的响应断言. 第一次在cnblog上 ...

  3. AngularJS:过滤器

    ylbtech-AngularJS:过滤器 1.返回顶部 1. AngularJS 过滤器 过滤器可以使用一个管道字符(|)添加到表达式和指令中. AngularJS 过滤器 AngularJS 过滤 ...

  4. PHP统计排行,分页

    1.分页参数 count 总数 firstRow   起始行 listRows   每一次获取记录数 list          每一页的记录(要与count对应一致就行) 2.分页对象 可以针对真实 ...

  5. [新手教程]windows 2003 php环境搭建详细教程(转)

    对于windows服务器的php环境配置一直是是新人朋友的难题,也难倒了很多高手.这里分享一个新手教程,给那些建站新人使用.本教程来自朋友吴文辉的博客,欢迎大家有时间可以访问他的博客:吴文辉博客htt ...

  6. linux平台总线驱动设备模型之点亮LED

    这一节里,我们来使用平台驱动设备这一套架构来实现我们之前使用简单的字符设备驱动点亮LED,这里并无实际意义,只是告诉大家如果编写平台总线驱动设备. 问:如何编写平台总线驱动设备这一套架构的设备驱动? ...

  7. Win7开始菜单所在目录

    C:\ProgramData\Microsoft\Windows\Start Menu\Programs 可在此目录下归类,建文件夹

  8. Maven Assembly打包提示[WARNING] transitive dependencies if any will not be available

    maven assembly打包出现错误 [WARNING] The POM for com.flink.xxr:0.0.1-SNAPSHOT is invalid, transitive depen ...

  9. SerialPort缓冲区

    SerialPort缓冲区中有:接收缓冲区,发送缓冲区,输入缓冲区,输出缓冲区,传输缓冲区. 例如: 串口属性:BytesToRead(获取接收缓冲区中数据的字节数)--这里提到的是“接收缓冲区” 串 ...

  10. Stars(树状数组单点更新)

    Astronomers often examine star maps where stars are represented by points on a plane and each star h ...