fixed bug #194

parent 8c1c0218
......@@ -8,6 +8,9 @@ Overview of changes in v9.2 "Galvanize"
inserting prompt parts from GtkComboBoxes did not work
* #193 (nano):
setting Nano UI Colors an Tabs to Spaces did not work
* #194 (colors):
color definitions have not been properly exported to external scripts,
which thus always displayed monochrome output
=== General ===
......
......@@ -29,93 +29,93 @@ elif [[ $colstyle == underlined ]]; then
fi
if [[ $TERM != *xterm* ]]; then
black="\[\033[${style};30m\]"
red="\[\033[${style};31m\]"
green="\[\033[${style};32m\]"
yellow="\[\033[${style};33m\]"
blue="\[\033[${style};34m\]"
magenta="\[\033[${style};35m\]"
cyan="\[\033[${style};36m\]"
white="\[\033[${style};37m\]"
coldblue=$blue
smoothblue=$blue
iceblue=$blue
turqoise=$cyan
smoothgreen=$green
winered=$red
brown=$yellow
silver=$white
ocher=$yellow
orange=$yellow
purple=$magenta
pink=$magenta
cream=$magenta
export black="\[\033[${style};30m\]"
export red="\[\033[${style};31m\]"
export green="\[\033[${style};32m\]"
export yellow="\[\033[${style};33m\]"
export blue="\[\033[${style};34m\]"
export magenta="\[\033[${style};35m\]"
export cyan="\[\033[${style};36m\]"
export white="\[\033[${style};37m\]"
export coldblue=$blue
export smoothblue=$blue
export iceblue=$blue
export turqoise=$cyan
export smoothgreen=$green
export winered=$red
export brown=$yellow
export silver=$white
export ocher=$yellow
export orange=$yellow
export purple=$magenta
export pink=$magenta
export cream=$magenta
eblack="\033[${style};30m"
ered="\033[${style};31m"
egreen="\033[${style};32m"
eyellow="\033[${style};33m"
eblue="\033[${style};34m"
emagenta="\033[${style};35m"
ecyan="\033[${style};36m"
ewhite="\033[${style};37m"
ecoldblue=$eblue
esmoothblue=$eblue
eiceblue=$eblue
eturqoise=$ecyan
esmoothgreen=$egreen
ewinered=$ered
ebrown=$eyellow
esilver=$ewhite
eocher=$eyellow
eorange=$eyellow
epurple=$emagenta
epink=$emagenta
ecream=$emagenta
export eblack="\033[${style};30m"
export ered="\033[${style};31m"
export egreen="\033[${style};32m"
export eyellow="\033[${style};33m"
export eblue="\033[${style};34m"
export emagenta="\033[${style};35m"
export ecyan="\033[${style};36m"
export ewhite="\033[${style};37m"
export ecoldblue=$eblue
export esmoothblue=$eblue
export eiceblue=$eblue
export eturqoise=$ecyan
export esmoothgreen=$egreen
export ewinered=$ered
export ebrown=$eyellow
export esilver=$ewhite
export eocher=$eyellow
export eorange=$eyellow
export epurple=$emagenta
export epink=$emagenta
export ecream=$emagenta
else
black="\[\033[${style};38;5;0m\]"
red="\[\033[${style};38;5;1m\]"
green="\[\033[${style};38;5;2m\]"
yellow="\[\033[${style};38;5;3m\]"
blue="\[\033[${style};38;5;4m\]"
magenta="\[\033[${style};38;5;129m\]"
cyan="\[\033[${style};38;5;6m\]"
white="\[\033[${style};38;5;7m\]"
coldblue="\[\033[${style};38;5;33m\]"
smoothblue="\[\033[${style};38;5;111m\]"
iceblue="\[\033[${style};38;5;45m\]"
turqoise="\[\033[${style};38;5;50m\]"
smoothgreen="\[\033[${style};38;5;42m\]"
winered="\[\033[${style};38;5;637m\]"
brown="\[\033[${style};38;5;684m\]"
silver="\[\033[${style};38;5;761m\]"
ocher="\[\033[${style};38;5;690m\]"
orange="\[\033[${style};38;5;714m\]"
purple="\[\033[${style};38;5;604m\]"
pink="\[\033[${style};38;5;213m\]"
cream="\[\033[${style};38;5;5344m\]"
export black="\[\033[${style};38;5;0m\]"
export red="\[\033[${style};38;5;1m\]"
export green="\[\033[${style};38;5;2m\]"
export yellow="\[\033[${style};38;5;3m\]"
export blue="\[\033[${style};38;5;4m\]"
export magenta="\[\033[${style};38;5;129m\]"
export cyan="\[\033[${style};38;5;6m\]"
export white="\[\033[${style};38;5;7m\]"
export coldblue="\[\033[${style};38;5;33m\]"
export smoothblue="\[\033[${style};38;5;111m\]"
export iceblue="\[\033[${style};38;5;45m\]"
export turqoise="\[\033[${style};38;5;50m\]"
export smoothgreen="\[\033[${style};38;5;42m\]"
export winered="\[\033[${style};38;5;637m\]"
export brown="\[\033[${style};38;5;684m\]"
export silver="\[\033[${style};38;5;761m\]"
export ocher="\[\033[${style};38;5;690m\]"
export orange="\[\033[${style};38;5;714m\]"
export purple="\[\033[${style};38;5;604m\]"
export pink="\[\033[${style};38;5;213m\]"
export cream="\[\033[${style};38;5;5344m\]"
eblack="\033[${style};38;5;0m"
ered="\033[${style};38;5;1m"
egreen="\033[${style};38;5;2m"
eyellow="\033[${style};38;5;3m"
eblue="\033[${style};38;5;4m"
emagenta="\033[${style};38;5;129m"
ecyan="\033[${style};38;5;6m"
ewhite="\033[${style};38;5;7m"
ecoldblue="\033[${style};38;5;33m"
esmoothblue="\033[${style};38;5;111m"
eiceblue="\033[${style};38;5;45m"
eturqoise="\033[${style};38;5;50m"
esmoothgreen="\033[${style};38;5;42m"
ewinered="\033[${style};38;5;637m"
ebrown="\033[${style};38;5;684m"
esilver="\033[${style};38;5;761m"
eocher="\033[${style};38;5;690m"
eorange="\033[${style};38;5;714m"
epurple="\033[${style};38;5;604m"
epink="\033[${style};38;5;213m"
ecream="\033[${style};38;5;5344m"
export eblack="\033[${style};38;5;0m"
export ered="\033[${style};38;5;1m"
export egreen="\033[${style};38;5;2m"
export eyellow="\033[${style};38;5;3m"
export eblue="\033[${style};38;5;4m"
export emagenta="\033[${style};38;5;129m"
export ecyan="\033[${style};38;5;6m"
export ewhite="\033[${style};38;5;7m"
export ecoldblue="\033[${style};38;5;33m"
export esmoothblue="\033[${style};38;5;111m"
export eiceblue="\033[${style};38;5;45m"
export eturqoise="\033[${style};38;5;50m"
export esmoothgreen="\033[${style};38;5;42m"
export ewinered="\033[${style};38;5;637m"
export ebrown="\033[${style};38;5;684m"
export esilver="\033[${style};38;5;761m"
export eocher="\033[${style};38;5;690m"
export eorange="\033[${style};38;5;714m"
export epurple="\033[${style};38;5;604m"
export epink="\033[${style};38;5;213m"
export ecream="\033[${style};38;5;5344m"
fi
eval usercolor=$(ini_get color_user)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment