Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Linux system font color change     - php security study (Linux)

- MySQL Installation Troubleshooting (Database)

- Debian 8 Jessie install LAMP server tutorial (Server)

- Linux System Getting Started Learning: The Linux ac command (Linux)

- Json Applications of FastJson (Programming)

- How to identify memory leaks in Java (Programming)

- Web database security tips (Linux)

- CentOS directory structure Explanation (Linux)

- MySQL combination Git achieve differential backups can be used in the production environment (Database)

- Linux variable learning experience (Linux)

- RHEL6.5 replace local YUM source (Linux)

- Windows Desktop use VNC remote connect Linux (Linux)

- Linux foundation tutorial: how to modify the host name on CentOS or RHEL 7 (Linux)

- Use lsof restore accidentally deleted log files or database (Linux)

- TOAD connect DB2 error SQL1460N solve (Database)

- Access clipboard content across multiple vim instances in a terminal (Linux)

- How to use the Linux terminal Git commands (Linux)

- Ubuntu font settings: Using Windows Font (Linux)

- Postfix mail service system principle and configuration (Linux)

- Docker study notes (Server)

 
         
  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:      
 
- cursor_sharing induced error ORA-00600 (Database)
- APT-GET commonly used Linux command (Linux)
- Oracle through the alarm log view and inspect the main library, physical and snapshot standby database (Database)
- Ubuntu 14.04 and derivative versions of the user install Pantheon Photos 0.1 (Linux)
- Java interview questions in nine radio (Programming)
- Linux MultiPath software implementation instructions (Linux)
- RCU lock in the evolution of the Linux kernel (Linux)
- Oracle 12c R2 new feature dbca command to create a standby database (Database)
- How to add any of a Linux distribution beautiful fonts (Linux)
- PostgreSQL-- run Supervisord on Docker in Ubuntu (Database)
- Linux kernel socket protocol stack routing lookup cache mechanism (Linux)
- Django Web dynamic three linkage (Programming)
- Percona MySQL 5.6 semi-synchronous replication (Database)
- Taught you how to build your own VPS server (Server)
- Talk Packages (Linux)
- Linux environmental performance data acquisition system (Linux)
- MySQL event table to achieve timing build a small note (Database)
- DRBD Principle and Features Overview (Server)
- Vagrant Getting Start (Linux)
- C language print various graphic (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.