How can we modify to have a colored Prompt string to be other than simple white
B Budi Nov 8, 2015 27 1 Feb 8, 2020 #1 How can we modify to have a colored Prompt string to be other than simple white
Joe Caverly Aug 28, 2009 1,724 57 Latitude 42.787045 Longitude -81.175952 Feb 8, 2020 #2 You can put colour in your prompt string using ANSI Codes. Take a look at ANSI X3.64 Command Reference for TCC for examples. Joe
You can put colour in your prompt string using ANSI Codes. Take a look at ANSI X3.64 Command Reference for TCC for examples. Joe
Joe Caverly Aug 28, 2009 1,724 57 Latitude 42.787045 Longitude -81.175952 Feb 8, 2020 #3 Here's an example of a coloured prompt string; Code: prompt $E[1A$E[97;44mTCC $p$g From the ANSI X3.64 Command Reference; <ESC>[rowsACursor up by rows (default is 1) 97107Bright white 3444Blue $E[1A = Cursor up 1 row $E[97;44m = Change colour to Bright White on a Blue background TCC = Any text that you want This is from the help for the Prompt Command; pCurrent drive and directory (lower case). gThe > character. $p$g = Current drive and directory (lower case), and the > character. Joe
Here's an example of a coloured prompt string; Code: prompt $E[1A$E[97;44mTCC $p$g From the ANSI X3.64 Command Reference; <ESC>[rowsACursor up by rows (default is 1) 97107Bright white 3444Blue $E[1A = Cursor up 1 row $E[97;44m = Change colour to Bright White on a Blue background TCC = Any text that you want This is from the help for the Prompt Command; pCurrent drive and directory (lower case). gThe > character. $p$g = Current drive and directory (lower case), and the > character. Joe
Joe Caverly Aug 28, 2009 1,724 57 Latitude 42.787045 Longitude -81.175952 Feb 8, 2020 #4 Friendly reminder that ANSI must be enabled for the previous to work. Joe