diff --git a/doc/man/mc.1.in b/doc/man/mc.1.in
index 79cad29..c5f8398 100644
a
|
b
|
color16 to color255, or as rgb000 to rgb555 and gray0 to gray23. Example: |
3609 | 3609 | base_color=normal=white,default:marked=magenta,default |
3610 | 3610 | .fi |
3611 | 3611 | .PP |
3612 | | Attributes can be any of bold, underline, reverse and blink, appended by a |
| 3612 | Attributes can be any of bold, italic, underline, reverse and blink, appended by a |
3613 | 3613 | plus sign if more than one are desired. The special word "none" means no |
3614 | 3614 | attributes, without attempting to fall back to base_color. Example: |
3615 | 3615 | .PP |
diff --git a/doc/man/mcedit.1.in b/doc/man/mcedit.1.in
index f92ffc8..0a3044a 100644
a
|
b
|
uses the color before the slash. See cooledit(1) for supported |
439 | 439 | .B cooledit |
440 | 440 | colors. |
441 | 441 | .PP |
442 | | Attributes can be any of bold, underline, reverse and blink, appended by a |
| 442 | Attributes can be any of bold, italic, underline, reverse and blink, appended by a |
443 | 443 | plus sign if more than one are desired. |
444 | 444 | .PP |
445 | 445 | Comments may be put on a separate line starting with the hash sign (#). |
diff --git a/doc/man/ru/mc.1.in b/doc/man/ru/mc.1.in
index cb3c052..ebbec83 100644
a
|
b
|
lightgray и white. Для прозрачного фона используют |
3999 | 3999 | base_color=normal=white,default:marked=magenta,default |
4000 | 4000 | .fi |
4001 | 4001 | .PP |
4002 | | Атрибуты обозначаются словами "bold", "underline", "reverse" и "blink". |
| 4002 | Атрибуты обозначаются словами "bold", "italic", "underline", "reverse" и "blink". |
4003 | 4003 | Чтобы использовать несколько атрибутов, их надо перечислить через символ "+". |
4004 | 4004 | The special word "none" menas no attributes, without attempting to fall back |
4005 | 4005 | to base_color. Пример: |
diff --git a/lib/tty/color-internal.c b/lib/tty/color-internal.c
index 530313f..5ae389a 100644
a
|
b
|
mc_tty_color_table_t const color_table[] = { |
83 | 83 | |
84 | 84 | mc_tty_color_table_t const attributes_table[] = { |
85 | 85 | {"bold", A_BOLD}, |
| 86 | #ifdef A_ITALIC /* available since ncurses-5.9-20130831 / slang-pre2.3.0-107 */ |
| 87 | {"italic", A_ITALIC}, |
| 88 | #endif /* A_ITALIC */ |
86 | 89 | {"underline", A_UNDERLINE}, |
87 | 90 | {"reverse", A_REVERSE}, |
88 | 91 | {"blink", A_BLINK}, |
diff --git a/lib/tty/color-slang.h b/lib/tty/color-slang.h
index 86c79f0..a1a8d55 100644
a
|
b
|
|
11 | 11 | /*** typedefs(not structures) and defined constants **********************************************/ |
12 | 12 | |
13 | 13 | /* When using Slang with color, we have all the indexes free but |
14 | | * those defined here (A_BOLD, A_UNDERLINE, A_REVERSE, A_BLINK) |
| 14 | * those defined here (A_BOLD, A_ITALIC, A_UNDERLINE, A_REVERSE, A_BLINK) |
15 | 15 | */ |
16 | 16 | |
17 | 17 | #ifndef A_BOLD |
18 | 18 | #define A_BOLD SLTT_BOLD_MASK |
19 | 19 | #endif /* A_BOLD */ |
| 20 | #ifdef SLTT_ITALIC_MASK /* available since slang-pre2.3.0-107 */ |
| 21 | #ifndef A_ITALIC |
| 22 | #define A_ITALIC SLTT_ITALIC_MASK |
| 23 | #endif /* A_ITALIC */ |
| 24 | #endif /* SLTT_ITALIC_MASK */ |
20 | 25 | #ifndef A_UNDERLINE |
21 | 26 | #define A_UNDERLINE SLTT_ULINE_MASK |
22 | 27 | #endif /* A_UNDERLINE */ |
diff --git a/misc/skins/sand256.ini b/misc/skins/sand256.ini
index 5783e2d..83af5d1 100644
a
|
b
|
|
47 | 47 | # |
48 | 48 | # Following the foreground and background colors, the third (optional) value |
49 | 49 | # can specify special attributes to enable. Valid values are bold, underline, |
50 | | # reverse and blink. Append more with a plus sign, e.g. "underline+bold". |
| 50 | # italic, reverse and blink. Append more with a plus sign, e.g. "bold+italic". |
51 | 51 | # Leaving the field empty makes it fall back to the attributes of _default_. |
52 | 52 | # Use any other word (e.g. "none") to prevent fallback and disable all flags. |
| 53 | # |
| 54 | # Italic support requires a recent enough ncurses (>= 5.9.20130831) or slang |
| 55 | # (>= 2.3). All attributes are subject to support by the terminal emulator. |
53 | 56 | |
54 | 57 | [skin] |
55 | 58 | description = Sand skin using 256 colors |
… |
… |
|
81 | 84 | [core] |
82 | 85 | _default_ = black;rgb554 |
83 | 86 | selected = ;rgb452 |
84 | | marked = rgb400 |
85 | | markselect = rgb400;rgb452 |
| 87 | marked = rgb400;;italic |
| 88 | markselect = rgb400;rgb452;italic |
86 | 89 | gauge = ;rgb452 |
87 | 90 | input = ;rgb452 |
88 | 91 | inputunchanged = gray;rgb452 |
… |
… |
|
90 | 93 | disabled = gray;rgb553 |
91 | 94 | reverse = ;rgb452 |
92 | 95 | commandlinemark = white;gray |
93 | | header = red |
| 96 | header = red;;italic |
94 | 97 | |
95 | 98 | [dialog] |
96 | 99 | _default_ = black;rgb553 |
97 | 100 | dfocus = ;rgb452 |
98 | 101 | dhotnormal = ;;underline |
99 | 102 | dhotfocus = ;rgb452;underline |
100 | | dtitle = ;;underline |
| 103 | dtitle = ;;italic+underline |
101 | 104 | |
102 | 105 | [error] |
103 | 106 | _default_ = rgb554;rgb320;bold |
… |
… |
|
105 | 108 | errdfocus = rgb000;rgb452;bold |
106 | 109 | errdhotnormal = ;;bold+underline |
107 | 110 | errdhotfocus = rgb000;rgb452;bold+underline |
108 | | errdtitle = ;;bold+underline |
| 111 | errdtitle = ;;bold+italic+underline |
109 | 112 | |
110 | 113 | [filehighlight] |
111 | 114 | directory = |
… |
… |
|
126 | 129 | database = rgb421 |
127 | 130 | |
128 | 131 | [menu] |
129 | | _default_ = black;rgb452 |
| 132 | _default_ = black;rgb452;italic |
130 | 133 | menusel = ;rgb551 |
131 | | menuhot = ;;underline |
132 | | menuhotsel = ;rgb551;underline |
| 134 | menuhot = ;;italic+underline |
| 135 | menuhotsel = ;rgb551;italic+underline |
133 | 136 | menuinactive = |
134 | 137 | |
135 | 138 | [popupmenu] |
136 | 139 | _default_ = black;rgb553 |
137 | 140 | menusel = ;rgb452;underline |
138 | | menutitle = ;;underline |
| 141 | menutitle = ;;italic+underline |
139 | 142 | |
140 | 143 | [buttonbar] |
141 | | hotkey = black;rgb554 |
142 | | button = black;rgb452 |
| 144 | hotkey = black;rgb554;italic |
| 145 | button = black;rgb452;italic |
143 | 146 | |
144 | 147 | [statusbar] |
145 | | _default_ = black;rgb452 |
| 148 | _default_ = black;rgb452;italic |
146 | 149 | |
147 | 150 | [help] |
148 | 151 | _default_ = black;rgb553 |
149 | | helpitalic = green |
150 | | helpbold = red |
| 152 | helpitalic = green;;italic |
| 153 | helpbold = red;;bold |
151 | 154 | helplink = blue;;underline |
152 | 155 | helpslink = blue;;reverse |
153 | 156 | helptitle = ;;underline |
… |
… |
|
155 | 158 | [editor] |
156 | 159 | _default_ = black;rgb554 |
157 | 160 | editbold = rgb400 |
158 | | editmarked = ;rgb452 |
| 161 | editmarked = ;rgb452;italic |
159 | 162 | editwhitespace = rgb400;rgb553 |
160 | 163 | editlinestate = ;rgb553 |
161 | 164 | bookmark = ;rgb551 |
diff --git a/src/args.c b/src/args.c
index 300a3b0..e77be21 100644
a
|
b
|
mc_args_new_color_group (void) |
369 | 369 | "Extended colors, when 256 colors are available:\n" |
370 | 370 | " color16 to color255, or rgb000 to rgb555 and gray0 to gray23\n\n" |
371 | 371 | "Attributes:\n" |
372 | | " bold, underline, reverse, blink; append more with '+'\n") |
| 372 | " bold, italic, underline, reverse, blink; append more with '+'\n") |
373 | 373 | ); |
374 | 374 | /* *INDENT-ON* */ |
375 | 375 | |