Ticket #3065: mc-4.8.10-italic.patch

File mc-4.8.10-italic.patch, 6.0 KB (added by egmont, 11 years ago)

patch for mc

  • doc/man/mc.1.in

    diff -ur mc-4.8.10.orig/doc/man/mc.1.in mc-4.8.10/doc/man/mc.1.in
    old new  
    35943594base_color=normal=white,default:marked=magenta,default 
    35953595.fi 
    35963596.PP 
    3597 Attributes can be any of bold, underline, reverse and blink, appended by a 
     3597Attributes can be any of bold, italic, underline, reverse and blink, appended by a 
    35983598plus sign if more than one are desired.  The special word "none" means no 
    35993599attributes, without attempting to fall back to base_color.  Example: 
    36003600.PP 
  • doc/man/mcedit.1.in

    diff -ur mc-4.8.10.orig/doc/man/mcedit.1.in mc-4.8.10/doc/man/mcedit.1.in
    old new  
    439439.B cooledit 
    440440colors. 
    441441.PP 
    442 Attributes can be any of bold, underline, reverse and blink, appended by a 
     442Attributes can be any of bold, italic, underline, reverse and blink, appended by a 
    443443plus sign if more than one are desired. 
    444444.PP 
    445445Comments may be put on a separate line starting with the hash sign (#). 
  • doc/man/ru/mc.1.in

    diff -ur mc-4.8.10.orig/doc/man/ru/mc.1.in mc-4.8.10/doc/man/ru/mc.1.in
    old new  
    39853985base_color=normal=white,default:marked=magenta,default 
    39863986.fi 
    39873987.PP 
    3988 Атрибуты обозначаются словами "bold", "underline", "reverse" и "blink". 
     3988Атрибуты обозначаются словами "bold", "italic", "underline", "reverse" и "blink". 
    39893989Чтобы использовать несколько атрибутов, их надо перечислить через символ "+". 
    39903990The special word "none" menas no attributes, without attempting to fall back 
    39913991to base_color. Пример: 
  • lib/tty/color-internal.c

    diff -ur mc-4.8.10.orig/lib/tty/color-internal.c mc-4.8.10/lib/tty/color-internal.c
    old new  
    8484 
    8585mc_tty_color_table_t const attributes_table[] = { 
    8686    {"bold", A_BOLD}, 
     87    {"italic", A_ITALIC}, 
    8788    {"underline", A_UNDERLINE}, 
    8889    {"reverse", A_REVERSE}, 
    8990    {"blink", A_BLINK}, 
  • lib/tty/color-slang.h

    diff -ur mc-4.8.10.orig/lib/tty/color-slang.h mc-4.8.10/lib/tty/color-slang.h
    old new  
    1111/*** typedefs(not structures) and defined constants **********************************************/ 
    1212 
    1313/* 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) 
    1515 */ 
    1616 
    1717#ifndef A_BOLD 
    1818#define A_BOLD SLTT_BOLD_MASK 
    1919#endif /* A_BOLD */ 
     20#ifndef A_ITALIC 
     21#define A_ITALIC SLTT_ITALIC_MASK 
     22#endif /* A_ITALIC */ 
    2023#ifndef A_UNDERLINE 
    2124#define A_UNDERLINE SLTT_ULINE_MASK 
    2225#endif /* A_UNDERLINE */ 
  • misc/skins/sand256.ini

    diff -ur mc-4.8.10.orig/misc/skins/sand256.ini mc-4.8.10/misc/skins/sand256.ini
    old new  
    4747# 
    4848# Following the foreground and background colors, the third (optional) value 
    4949# 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". 
    5151# Leaving the field empty makes it fall back to the attributes of _default_. 
    5252# Use any other word (e.g. "none") to prevent fallback and disable all flags. 
    5353 
     
    9090    disabled=gray;rgb553 
    9191    reverse=;rgb452 
    9292    commandlinemark=white;gray 
    93     header=red 
     93    header=red;;italic 
    9494 
    9595[dialog] 
    9696    _default_=black;rgb553 
    9797    dfocus=;rgb452 
    9898    dhotnormal=;;underline 
    9999    dhotfocus=;rgb452;underline 
    100     dtitle=;;underline 
     100    dtitle=;;italic+underline 
    101101 
    102102[error] 
    103103    _default_=rgb554;rgb320;bold 
    104104    errdfocus=black;rgb452;bold 
    105105    errdhotnormal=;;bold+underline 
    106106    errdhotfocus=black;rgb452;bold+underline  
    107     errdtitle=;;bold+underline  
     107    errdtitle=;;bold+italic+underline 
    108108 
    109109[filehighlight] 
    110110    directory= 
     
    125125    database=rgb421 
    126126 
    127127[menu] 
    128     _default_=black;rgb452 
    129     menuhot=;;underline 
     128    _default_=black;rgb452;italic 
     129    menuhot=;;italic+underline 
    130130    menusel=;rgb551 
    131     menuhotsel=;rgb551;underline 
     131    menuhotsel=;rgb551;italic+underline 
    132132    menuinactive= 
    133133 
    134134[popupmenu] 
    135     _default_=black;rgb553  
     135    _default_=black;rgb553 
    136136    menusel=;rgb452;underline 
    137     menutitle=;;underline 
     137    menutitle=;;underline+italic 
    138138 
    139139[buttonbar] 
    140     hotkey=black;rgb554 
    141     button=black;rgb452 
     140    hotkey=black;rgb554;italic 
     141    button=black;rgb452;italic 
    142142 
    143143[statusbar] 
    144     _default_=black;rgb452 
     144    _default_=black;rgb452;italic 
    145145 
    146146[help] 
    147147    _default_=black;rgb553 
    148     helpitalic=green 
    149     helpbold=red 
     148    helpitalic=green;;italic 
     149    helpbold=red;;bold 
    150150    helplink=blue;;underline 
    151151    helpslink=blue;;reverse 
    152152 
  • src/args.c

    diff -ur mc-4.8.10.orig/src/args.c mc-4.8.10/src/args.c
    old new  
    376376                                                    "Extended colors, when 256 colors are available:\n" 
    377377                                                    "   color16 to color255, or rgb000 to rgb555 and gray0 to gray23\n\n" 
    378378                                                    "Attributes:\n" 
    379                                                     "   bold, underline, reverse, blink; append more with '+'\n") 
     379                                                    "   bold, italic, underline, reverse, blink; append more with '+'\n") 
    380380                                                    ); 
    381381/* *INDENT-ON* */ 
    382382