Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux system font color change     - After installing minimize RHEL / CentOS 7 need to do some things (Linux)

- Summarize small problems encountered in the use Lua (Programming)

- Linux regex sed detailing (Linux)

- How to Debian Linux the default Python version switch to alternative version (Linux)

- Use OpenWrt build WDS wireless network extension on V2 WHR-G300N (Linux)

- Linux Basic Course: tar command description (Linux)

- On the Web application attack techniques Common (Linux)

- To compile and install Clang 3.5.0 in Linux CentOS (Linux)

- The bulk batch multiple rows of data collect (Database)

- Oracle 11g Export guide problem not an empty table (Database)

- Linux system firewall defense network attacks (Linux)

- Computer security protection remove local and remote system log files (Linux)

- Install Firefox 28 on Ubuntu, Linux Mint (Linux)

- Oracle Linux 5.9 configuration Xmanager (Linux)

- Linux system man help tips (Linux)

- Linux operating system security management skills notes (Linux)

- Linux keyboard recording script (Linux)

- Linux command ls (Linux)

- Beautiful start Ubuntu installation tool Duck Launcher 0.64.5 (Linux)

- PHP 5.3 New Features Detail (Linux)

 
         
  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.
     
         
       
         
  More:      
 
- Realization of Linux operating system illegal IP censorship (Linux)
- Do you know how to build the Linux kernel (Programming)
- Nginx installation configuration Zabbix (Server)
- LMMS 1.03 install on Ubuntu 14.04 (Linux)
- Use SecureCRT to transfer files between Linux and Windows (Linux)
- How to install the Linux text editor Atom 0.124.0 (Linux)
- Java memory-mapped file MappedByteBuffer (Programming)
- Ubuntu installed racing game Speed Dreams 2.1 (Linux)
- Oracle 12C with multi-column index (Database)
- Atheros AR8161 / AR8162 network card driver problem solving in CentOS 6.4 (Linux)
- The file name is garbled or deleted files with special characters under Linux (Linux)
- Apache Web Security Linux systems (Linux)
- Network traffic monitoring ntopng (Linux)
- CentOS / RHEL 6 was repeated prohibited under the SNMP connection log (Server)
- Ubuntu uses under KVM + Qemu virtual machine build (Linux)
- Java generate two-dimensional code by Zxing (Programming)
- CentOS 6.6 install Oracle 11gR2 database (Database)
- Tomcat itself through simple movement separation (Server)
- Oracle PLS-00231 error analysis (Database)
- Tomcat configuration memory and remote debug port (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.