-
-
Notifications
You must be signed in to change notification settings - Fork 392
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Override default console highlighting colors (#763)
Signed-off-by: Ben Clark <ben@benjyc.uk>
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
distributions/openhab/src/main/resources/userdata/etc/scripts/shell.colors.script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// This script overrides the default colors for the Karaf console. | ||
// All colors are set using the original ANSI escape code specification. | ||
|
||
// HIGHLIGHTER_COLORS overrides the colors related to console input. | ||
// From the Apache Felix documentation: | ||
// rs : Reserved words | ||
// st : Strings | ||
// nu : Numbers | ||
// co : Constants | ||
// va : Variable | ||
// vn : Variable name | ||
// fu : Function | ||
// bf : Bad function | ||
// un : Unknown | ||
// re : Repair | ||
|
||
HIGHLIGHTER_COLORS = "rs=93:st=92:nu=37:co=90:va=97:vn=37:fu=96:bf=91:re=32" | ||
|
||
// LS_COLORS overrides the colors used in the ls command output. | ||
// From the Apache Felix documentation: | ||
// dr : Directory | ||
// ex : Executable | ||
// sl : Symbolic Link | ||
// ot : Other | ||
|
||
//LS_COLORS = "dr=1;91:ex=1;92:sl=1;96:ot=34;43" | ||
|
||
// GREP_COLORS overrides the colors used in the grep command output. | ||
// From the Apache Felix documentation: | ||
// mt : Hits in the text (sets both ms and mc) | ||
// ms : Matching text in selected line | ||
// mc : Matching text in context line | ||
// fn : File names | ||
// ln : Line numbers | ||
// se : Selected lines | ||
// sl : Whole selected line | ||
// cx : Context lines | ||
// rv : If set and match is inverted, the meaning of sl and cx is inverted | ||
|
||
//GREP_COLORS = "mt=1;31:fn=35:ln=32:se=36" |