終端terminal的顏色配置

PS1 color? 終端terminal的顏色配置

PS1="\[\e[92;1m\][\u\e[90;5m@\e[25m\[\e[91;4m\]Atlas\e[24m\[\e[1m\]\[\e[92;1m\] \W ]\\$\[\e[0m\]"

Set

?

CodeDescriptionExamplePreview
1Bold/Bright
echo -e "Normal \e[1mBold"
Normal Bold
2Dim
echo -e "Normal \e[2mDim"
Normal Dim
4Underlined
echo -e "Normal \e[4mUnderlined"
Normal Underlined
5Blink?1)
echo -e "Normal \e[5mBlink"
Normal Blink
7Reverse (invert the foreground and background colors)
echo -e "Normal \e[7minverted"
Normal inverted
8Hidden (useful for passwords)
echo -e "Normal \e[8mHidden"
Normal Hidden

?

?

?

?

?

?

?

Reset

CodeDescriptionExamplePreview
0Reset all attributes
echo -e "\e[0mNormal Text"
Normal Text
21Reset bold/bright
echo -e "Normal \e[1mBold \e[21mNormal"
Normal Bold Normal
22Reset dim
echo -e "Normal \e[2mDim \e[22mNormal"
Normal Dim Normal
24Reset underlined
echo -e "Normal \e[4mUnderlined \e[24mNormal"
Normal Underlined Normal
25Reset blink
echo -e "Normal \e[5mBlink \e[25mNormal"
Normal Blink Normal
27Reset reverse
echo -e "Normal \e[7minverted \e[27mNormal"
Normal inverted Normal
28Reset hidden
echo -e "Normal \e[8mHidden \e[28mNormal"
Normal Hidden Normal

Foreground (text)

CodeColorExamplePreview
39Default foreground color
echo -e "Default \e[39mDefault"
Default Default
30Black
echo -e "Default \e[30mBlack"
Default Black
31Red
echo -e "Default \e[31mRed"
Default Red
32Green
echo -e "Default \e[32mGreen"
Default Green
33Yellow
echo -e "Default \e[33mYellow"
Default Yellow
34Blue
echo -e "Default \e[34mBlue"
Default Blue
35Magenta
echo -e "Default \e[35mMagenta"
Default Magenta
36Cyan
echo -e "Default \e[36mCyan"
Default Cyan
37Light gray
echo -e "Default \e[37mLight gray"
Default Light gray
90Dark gray
echo -e "Default \e[90mDark gray"
Default Dark gray
91Light red
echo -e "Default \e[91mLight red"
Default Light red
92Light green
echo -e "Default \e[92mLight green"
Default Light green
93Light yellow
echo -e "Default \e[93mLight yellow"
Default Light yellow
94Light blue
echo -e "Default \e[94mLight blue"
Default Light blue
95Light magenta
echo -e "Default \e[95mLight magenta"
Default Light magenta
96Light cyan
echo -e "Default \e[96mLight cyan"
Default Light cyan
97White
echo -e "Default \e[97mWhite"
Default White

Background

CodeColorExamplePreview
49Default background color
echo -e "Default \e[49mDefault"
Default Default
40Black
echo -e "Default \e[40mBlack"
Default Black
41Red
echo -e "Default \e[41mRed"
Default Red
42Green
echo -e "Default \e[42mGreen"
Default Green
43Yellow
echo -e "Default \e[43mYellow"
Default Yellow
44Blue
echo -e "Default \e[44mBlue"
Default Blue
45Magenta
echo -e "Default \e[45mMagenta"
Default Magenta
46Cyan
echo -e "Default \e[46mCyan"
Default Cyan
47Light gray
echo -e "Default \e[47mLight gray"
Default Light gray
100Dark gray
echo -e "Default \e[100mDark gray"
Default Dark gray
101Light red
echo -e "Default \e[101mLight red"
Default Light red
102Light green
echo -e "Default \e[102mLight green"
Default Light green
103Light yellow
echo -e "Default \e[103mLight yellow"
Default Light yellow
104Light blue
echo -e "Default \e[104mLight blue"
Default Light blue
105Light magenta
echo -e "Default \e[105mLight magenta"
Default Light magenta
106Light cyan
echo -e "Default \e[106mLight cyan"
Default Light cyan
107White
echo -e "Default \e[107mWhite"
Default White

?

轉載于:https://www.cnblogs.com/chinesezyc/p/9837008.html

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/396383.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/396383.shtml
英文地址,請注明出處:http://en.pswp.cn/news/396383.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

速度與激情的Webpack

Also published in my tech blog也發布在我的技術博客中 This is a guide that is meant to help you ease your development workflow and save your time by using a bunch of awesome tools that you’ve read about on the internet (does React Hot Loader ring any bells…

java nio socket長連接_nio實現Socket長連接和心跳

前段時間用bio方式,也就是傳統io實現了socket的長連接和心跳,總覺著服務端開啟多線程管理socket連接的方式過于消耗資源,數據并發的情況下可能會影響到性能,因此就嘗試使用nio改進原來的代碼。然而改進的過程卻不像我起初設想的那…

unity讓對象作為參數_C#+Unity學習筆記:類與對象

參考文獻蜜酒廳通訊社 游戲部 石中居士對象(object):有狀態、行為和身份的東西。狀態(state):表示物體特征的信息,可以用來跟蹤對象的狀態。屬性(properties):因為編程人員需要把控對象的狀態,所以要對其進行訪問。通過…

Tomcat 報 The valid characters are defined in RFC 7230 and RFC 3986

問題 24-Mar-2017 23:43:21.300 INFO [http-apr-8001-exec-77] org.apache.coyote.http11.AbstractHttp11Processor.process Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level. java.lang.IllegalAr…

Linux Kernel Oops異常分析

0.linux內核異常常用分析方法 異常地址是否在0附近,確認是否是空指針解引用問題異常地址是否在iomem映射區,確認是否是設備訪問總線異常問題,如PCI異常導致的地址訪問異常異常地址是否在stack附近,如果相鄰&#xff0c…

Centos7.5 VMtools的安裝與卸載

一、安裝1、自帶tools: 選擇VMware工具欄 > 虛擬機 > 安裝VMtools2、掛載光驅3、tar -zxvf VMwareTools-10.3.2-9925305.tar.gz(這里以tar文件為例)4、切換到目標目錄,執行(一定要使用root權限執行)…

gitter 卸載_最佳Gitter渠道:開發人員工具

gitter 卸載by Gitter通過吉特 最佳Gitter渠道:開發人員工具 (Best Gitter channels: Developer Tools) Developer tools have become essential to any kind of serious software development, also in the open source setting. They can ease the daily develop…

java 過濾腳本_我寫的得到天氣的Java代碼,其中有過濾腳本和過濾HTMLtag的函數。...

public class WeatherFilter{private String html;private String target"http://weather.news.sohu.com/query.php?city北京";public WeatherFilter()throws Exception{this(null);}public WeatherFilter(String targetIn)throws Exception{if(targetIn!null)this.…

【懶癌發作】收集各種懶癌發作時用程序寫作業的程序

updata:20170621 好的,已經是準高一了,現在看起來太蠢了。。。 -------------------------------------------------------------------------------------- 要真正的運用,程序一定是要來解決實際問題的——比如作業(懶就直說&…

50歐姆線設計 高頻pcb_硬件設計基礎100問(三)

硬件基礎知識問答今天依舊是節前知識儲備哦,jacky大神整理的硬件基礎知識很細致,第三彈學起來!01 1、晶體管基本放大電路有共射、共集、共基三種接法,請簡述這三種基本放大電路的特點。共射:共射放大電路具有放大電流和…

如何正確實現 Java 中的 HashCode

相等 和 Hash Code 從一般角度來看,Equality 是不錯的,但是 hash code 更則具技巧性。如果我們在 hash code上多下點功夫,我們就能了解到 hash code 就是用在細微處去提升性能的。 大部分的數據結構使用equals去檢查是否他們包含一個元素。例…

一億小目標成就_成就卓越的一種方式:自我選擇

一億小目標成就by Prosper Otemuyiwa通過Prosper Otemuyiwa 成就卓越的一種方式:自我選擇 (One way to Greatness: Pick Yourself) I’ve heard many people say this: “I want to be great”, but most people only just have wild thoughts & imaginations …

java操作文件愛女_Java的IO操作---File類

目標1)掌握File類作用2)可以使用file類中方法對文件進行讀寫操作。File類唯一與文件有關的類。使用file類可進行創建或刪除操作,要想使用File類,首先觀察File類的構造方法。public File(String pathname);實例化File類的時候,必須設置好路徑。…

openssl創建私有ca

openssl創建私有ca1.ssl大概內容PKI:公鑰基礎設施結構CA:證書權威機構,PKI的核心CRL:證書吊銷列表,使用證書之前需要檢測證書有效性證書存儲格式常見的X509格式包含內容 公鑰有效期限證書的合法擁有人證書該如何使用CA的信息CA簽名…

查詢顯示注釋_SQL的簡單查詢

1.基本的查詢語句-- *代表查詢所有的列select * from <表名>;distinct表示列中不包括重復的值&#xff0c;例如select distinct 姓名&#xff1b;如果是select distinct 姓名,學號&#xff1b;則表示姓名和學號都重復的值才會顯示。as為列設定別名&#xff0c;例如select…

【AC自動機】【數據結構】【樹】【Aho-Corasick automation】AC自動機理解(入門)...

引入 我們首先提出一個問題&#xff1a; 給出n個串每個串的長度≤m 然后給出一個長度為k的串&#xff0c;詢問前n個串中有多少個是匹配成了的 暴力搜索 這題不是sb題目嗎&#xff1f; 隨隨便便O(kmn)跑過。 。。。。 n10000 m50 k1000000 。。。。 好吧——我們用AC自動…

域控dns無法解析域控_域注冊商,DNS和托管

域控dns無法解析域控by ????? ??????????由??????????????? 域名注冊商&#xff0c;DNS和托管 (Domain registrars, DNS, and hosting) 如何正確設置網站 (How to set up your website the right way) It took me a while to set up the infras…

java 棧空間_初學JAVA——棧空間堆空間的理解

1.Person pangzi; //這是在“開拓空間”于棧空間pangzinew Person(); //這是賦值于堆空間上兩步就是在做與空間對應的事。2.值類型直接存入棧空間&#xff0c;如AF&#xff0c;引用類型存入堆空間&#xff0c;在棧空間存有“索引地址”&#xff0c;如當需要B時&#xff0…

二進制安裝kubernetes v1.11.2 (第八章 kube-apiserver 部署)

繼續上一章部署。 八、部署kube-apiserver組件 使用第七章的haproxy和keepalived部署的高可用集群提供的VIP&#xff1a;${MASTER_VIP} 8.1 下載二進制文件&#xff0c;參考 第三章  8.2 創建 kubernetes 證書和私鑰 source /opt/k8s/bin/environment.sh cat > kubernetes-…

element手機驗證格式_vue封裝 element-ui form表單驗證 正則匹配手機號 自定義校驗表格內容...

效果image.png在methods中//檢查手機號isCellPhone(val) {if (!/^1(3|4|5|6|7|8)\d{9}$/.test(val)) {return false;} else {return true;}}在template中v-model"forgetForm.phone"type"text"auto-complete"off"placeholder"請輸入你的手機…