Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ Linux system font color change     - Python2.7.7 source code analysis (Programming)

- Nginx1.8 version upgrade method AMH4.2 Free manually compile (Server)

- About Linux operating system security (Linux)

- Summary Linux operating system some tips to prevent attacks (Linux)

- ImportTsv-HBase data import tool (Database)

- How to use the tab in Vim carried Python code completion (Linux)

- Node.JS different ways to install under Ubuntu 15.04 (Linux)

- Ubuntu 14.10 splash screen brightness settings (Linux)

- Python several standard types of built-in functions (Programming)

- Python 2.7 installed on CentOS 6.5 (Linux)

- Oracle Database asynchronous IO cause slow query response (Database)

- Using DOS command to change UNIX administrator password (Linux)

- 5 steps to help you become a good Docker contributors (Linux)

- CentOS7 install NTFS-3G driver (Linux)

- CentOS 6.4 Telecom ADSL dial-up network configuration (Linux)

- Binary tree and some basic operations with binary list (Programming)

- Linux initialization init system - UpStart (Linux)

- MySQL 5.7.10 source code for the latest version of the installation process in detail (Database)

- CentOS 6.4 of cron scheduled task configuration (Linux)

- The Linux C truncate function clears the file notes (Programming)

  Linux system font color change
  Add Date : 2018-11-21      
  Linux systems change the font color, it is to use "ANSI unconventional character sequence" is generated. Example:

printf ( "\ 033 [44; 37; 5m string needs to be output \ 033 [0m")

"\ 033 [44; 37; 5m" meaning:

   \ 033 [change the color identifier

"44; 37; 5m" where: 44 for the font background color, as well as the range of 40-47 49.

                            37 font color, in the range of 30-39.

                            5 to select the action, ranging 01245722242527

                            m means setting property unconventional character sequence then ends

Font color font color background action

40 set black background 30 set black foreground property to 0 to reset the default settings

41 set red background 31 set 1 set bold red foreground

42 set green background 32 set green foreground 2 set half brightness (analog color color display)

43 set brown background 33 set brown foreground 4 set underscore (simulated color color display)

44 set blue background 34 set blue foreground setting flashes 5

45 set 35 set purple purple background foreground 7 set up a reverse image

46 set cyan background 36 set cyan foreground 22 is provided with general density

47 set white background 37 set white foreground 24 is closed underscore

49 set black background 38 set default underline the default foreground color 25 off Blinking

                                          39 27 Close Close underline reverse image on the default foreground color

TCL used in the case, has changed:

puts "" \ 033 \ [44; 37; 5m string needs to be output \ 033 \ [0m "

The need to "[" preceded by a "\" because TCL in "[" represents the command to use, you need to use the "\" Annotated.

I was in TCL with a mix of sucess

puts "\ 033 \ [49; 32;. 5m $ table_name $ filed_name_temp value check is right \ 033 \ [0m"

       error to mix

puts "\ 033 \ [49; 31; 5m $ table_name $ filed_name_temp value check is error:. \ 033 \ [0m"

For example, in a script: echo -e "! \ 033 [32m it is work \ 033 [0m"

In the script output, font it is work! Will become green, to facilitate the observation for wrong.
- Tmux Crash Course: Tips and adjustment (Linux)
- Close and limit unused ports computer server security protection (Linux)
- Swift used in the application to add a local push at the specified time (Programming)
- Nodejs mysql pool Example (Programming)
- SteamOS installation under Ubuntu 14.04 (Linux)
- Spring declarative transaction management (Programming)
- Ubuntu install code editor Sublime Text 3 (Linux)
- QEMU code analysis: BIOS loading process (Linux)
- SSH port forwarding application (Server)
- The istgt PSD on ported to Mac OS X (Linux)
- RocketMQ Message Queuing simple deployment (Linux)
- Linux platform host to prevent hacking skills (Linux)
- Linux system file directory structure Introduction (Linux)
- Install Unity 8 preview version of the desktop in Ubuntu (Linux)
- SpringMVC garbage processing (Programming)
- Ubuntu 12.04 kernel configuration automatically restart and crash dump (Linux)
- Linux suffered SYN flood attack setting (Linux)
- Oracle database, some basic grammatical structures (Database)
- Linux System Tutorial: How to browse the Linux command line, weather forecast (Linux)
- CentOS Linux build SVN server (Server)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.