From 6582b89c633ec4f8b531a6158dec1c540d9642aa Mon Sep 17 00:00:00 2001 From: Egmont Koblinger Date: Wed, 29 Dec 2010 12:04:56 +0200 Subject: [PATCH] Added skin for demonstrate how to use 256 colors in mc Signed-off-by: Slava Zanko --- misc/skins/Makefile.am | 4 +- misc/skins/sand256.ini | 174 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 177 insertions(+), 1 deletion(-) create mode 100644 misc/skins/sand256.ini diff --git a/misc/skins/Makefile.am b/misc/skins/Makefile.am index 0e7c2b112..78f7d0ef7 100644 --- a/misc/skins/Makefile.am +++ b/misc/skins/Makefile.am @@ -6,7 +6,9 @@ skin_DATA = \ double-lines.ini \ featured.ini \ gotar.ini \ - nicedark.ini + nicedark.ini \ + sand256.ini + EXTRA_DIST = \ $(skin_DATA) diff --git a/misc/skins/sand256.ini b/misc/skins/sand256.ini new file mode 100644 index 000000000..84f56e66f --- /dev/null +++ b/misc/skins/sand256.ini @@ -0,0 +1,174 @@ +# This skin demonstrates how to use 256 colors in mc. +# +# As a prerequisite, you will need to: +# 1) Have a terminal emulator that supports 256 colors (a few examples: +# xterm, Gnome terminal and other VTE derivatives, KDE's Konsole; +# iTerm for Mac OS X, PuTTY for Windows). +# 2) Adjust your TERM variable accordingly, e.g.: export TERM=xterm-256color +# Verify by running tput colors +# +# Each of the 256 colors has two names, you can use whichever you prefer. +# +# One possibility is to use the names "color0" to "color255" to access every +# color directly based on their number. +# +# The first 16 colors ("color0" to "color15") can also be specified by their +# names (these names are already being used by mc for 8/16 color terminals): +# black gray +# red brightred +# green brightgreen +# brown yellow +# blue brightblue +# magenta brightmagenta +# cyan brightcyan +# lightgray white +# Note that with 8/16 color terminal settings (such as TERM=xterm), colors +# of the second column can only be used for the foreground, and their actual +# interpretation varies across terminals. Some terminals show the colors +# from the first column instead (that is, you only have 8 colors), but make +# them bold. Others show the brighter version (16 foreground colors). Yet +# others make them bold and bright at the same time. Switching to 256 colors +# should end this ambiguity: you should have 16 separate colors according to +# their names, none of them are bold by default but any of them can be +# switched to bold, and all of them are available for background, too. This +# is the intended behavior, the actual behavior might vary across terminals. +# +# Colors of the 6x6x6 cube ("color16" to "color231") can alternatively be +# referred to as "rgb000" to "rgb555", all three digits ranging from 0 to 5, +# corresponding to the R, G and B color components. +# +# The 24 grayscale colors ("color232" to "color255") have the aliases "gray0" +# to "gray23". +# +# In addition to the 256 colors, the special word "default" means the +# default foreground or background color of your terminal, while "base" means +# mc's main colors. A missing value means falling back to the _default_ of the +# given section. +# +# Following the foreground and background colors, the third (optional) value +# can specify special attributes to enable. Valid values are bold, underline, +# reverse and blink. Append more with a plus sign, e.g. "underline+bold". +# Leaving the field empty makes it fall back to the attributes of _default_. +# Use any other word (e.g. "none") to prevent fallback and disable all flags. + +[skin] + description=Sand skin using 256 colors + +[Lines] + horiz=─ + vert=│ + lefttop=┌ + righttop=┐ + leftbottom=└ + rightbottom=┘ + topmiddle=─ + bottommiddle=─ + leftmiddle=├ + rightmiddle=┤ + cross=┼ + dhoriz=─ + dvert=│ + dlefttop=┌ + drighttop=┐ + dleftbottom=└ + drightbottom=┘ + dtopmiddle=─ + dbottommiddle=─ + dleftmiddle=├ + drightmiddle=┤ + +[core] + _default_=black;rgb554 + selected=;rgb452 + marked=rgb400 + markselect=rgb400;rgb452 + gauge=;rgb452 + input=;rgb452 + reverse=;rgb452 + +[dialog] + _default_=black;rgb553 + dfocus=;rgb452 + dhotnormal=;;underline + dhotfocus=;rgb452;underline + +[error] + _default_=rgb554;rgb320;bold + errdhotnormal=;;bold+underline + errdhotfocus=black;rgb452;underline + +[filehighlight] + directory= + executable=rgb030 + symlink=rgb202 + # 404 Not Found :) + stalelink=rgb404 + device=rgb231 + special=rgb331 + core=rgb430 + temp=gray15 + archive=rgb012 + doc=rgb103 + source=rgb310 + media=rgb024 + graph=rgb033 + database=rgb421 + +[menu] + _default_=black;rgb452 + menuhot=;;underline + menusel=;rgb551 + menuhotsel=;rgb551;underline + menuinactive= + +[buttonbar] + hotkey=black;rgb554 + button=black;rgb452 + +[help] + _default_=black;rgb553 + helpitalic=green + helpbold=red + helplink=blue;;underline + helpslink=blue;;reverse + +[editor] + _default_=black;rgb554 + editbold=rgb400 + editmarked=;rgb452 + editwhitespace=rgb400;rgb553 + editlinestate=;rgb553 + bookmark=;rgb551 + bookmarkfound=;rgb530 + editrightmargin=rgb400;rgb553 + +[viewer] + viewunderline=;;underline + +[diffviewer] + added=;rgb450 + changedline=blue;rgb553 + changednew=rgb400;rgb553 + changed=;rgb553 + removed=;rgb511 + folder=;rgb530 + error=rgb554;rgb320 + +[widget-common] + sort-sign-up = ↓ + sort-sign-down = ↑ + +[widget-panel] + hiddenfiles-sign-show = • + hiddenfiles-sign-hide = ○ + history-prev-item-sign = « + history-next-item-sign = » + history-show-list-sign = ^ + +[widget-scollbar] + first-vert-char=↑ + last-vert-char=↓ + first-horiz-char=« + last-horiz-char=» + current-char=■ + background-char=▒