B Budi Nov 27 1 2020-02-08 #1 How can we modify to have a colored Prompt string to be other than simple white
Joe Caverly Aug 2,263 108 2020-02-08 #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 2,263 108 2020-02-08 #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 2,263 108 2020-02-08 #4 Friendly reminder that ANSI must be enabled for the previous to work. Joe