diff -ur slang-2.2.4.orig/src/slang.h slang-2.2.4/src/slang.h
old
|
new
|
|
1595 | 1595 | #define SLTT_ULINE_MASK 0x04000000UL |
1596 | 1596 | #define SLTT_REV_MASK 0x08000000UL |
1597 | 1597 | #define SLTT_ALTC_MASK 0x10000000UL |
| 1598 | #define SLTT_ITALIC_MASK 0x20000000UL |
1598 | 1599 | |
1599 | 1600 | SL_EXTERN int SLtt_Screen_Rows; |
1600 | 1601 | SL_EXTERN int SLtt_Screen_Cols; |
diff -ur slang-2.2.4.orig/src/slcurses.c slang-2.2.4/src/slcurses.c
old
|
new
|
|
372 | 372 | SLtt_set_mono (SLCURSES_EXTRACT_COLOR(A_UNDERLINE), NULL, SLTT_ULINE_MASK); |
373 | 373 | SLtt_set_mono (SLCURSES_EXTRACT_COLOR(A_REVERSE), NULL, SLTT_REV_MASK); |
374 | 374 | /* SLtt_set_mono (SLCURSES_EXTRACT_COLOR(A_BLINK), NULL, SLTT_BLINK_MASK); */ |
| 375 | /* SLtt_set_mono (SLCURSES_EXTRACT_COLOR(A_ITALIC), NULL, SLTT_ITALIC_MASK); */ |
375 | 376 | SLtt_set_mono ((SLCURSES_EXTRACT_COLOR(A_BOLD|A_UNDERLINE)), NULL, SLTT_ULINE_MASK|SLTT_BOLD_MASK); |
376 | 377 | SLtt_set_mono ((SLCURSES_EXTRACT_COLOR(A_REVERSE|A_UNDERLINE)), NULL, SLTT_ULINE_MASK|SLTT_REV_MASK); |
377 | 378 | |
diff -ur slang-2.2.4.orig/src/slcurses.h slang-2.2.4/src/slcurses.h
old
|
new
|
|
286 | 286 | #define A_UNDERLINE 0x40000000UL /* was 0x4000 */ |
287 | 287 | #define A_ALTCHARSET 0x80000000UL /* was 0x8000 */ |
288 | 288 | #define A_BLINK 0x00000000UL |
| 289 | #define A_ITALIC 0x00000000UL |
289 | 290 | #define A_DIM 0x00000000UL |
290 | 291 | #define A_PROTECT 0x00000000UL |
291 | 292 | #define A_INVIS 0x00000000UL |
diff -ur slang-2.2.4.orig/src/sldisply.c slang-2.2.4/src/sldisply.c
old
|
new
|
|
94 | 94 | #define CHAR_MASK 0x000000FF |
95 | 95 | #define FG_MASK 0x0000FF00 |
96 | 96 | #define BG_MASK 0x00FF0000 |
97 | | #define ATTR_MASK 0x1F000000 |
| 97 | #define ATTR_MASK 0x3F000000 |
98 | 98 | #define BGALL_MASK 0x0FFF0000 |
99 | 99 | |
100 | 100 | /* The 0x10000000 bit represents the alternate character set. BGALL_MASK does |
… |
… |
|
192 | 192 | |
193 | 193 | static SLCONST char *UnderLine_Vid_Str; |
194 | 194 | static SLCONST char *Blink_Vid_Str; |
| 195 | static SLCONST char *Italic_Vid_Str; |
195 | 196 | static SLCONST char *Bold_Vid_Str; |
196 | 197 | static SLCONST char *Ins_Mode_Str; /* = "\033[4h"; */ /* ins mode (im) */ |
197 | 198 | static SLCONST char *Eins_Mode_Str; /* = "\033[4l"; */ /* end ins mode (ei) */ |
… |
… |
|
1481 | 1482 | if (fgbg & SLTT_ULINE_MASK) tt_write_string (UnderLine_Vid_Str); |
1482 | 1483 | if (fgbg & SLTT_BOLD_MASK) SLtt_bold_video (); |
1483 | 1484 | if (fgbg & SLTT_REV_MASK) tt_write_string (Rev_Vid_Str); |
| 1485 | if (fgbg & SLTT_ITALIC_MASK) tt_write_string (Italic_Vid_Str); |
1484 | 1486 | if (fgbg & SLTT_BLINK_MASK) |
1485 | 1487 | { |
1486 | 1488 | /* Someday Linux will have a blink mode that set high intensity |
… |
… |
|
2666 | 2668 | |
2667 | 2669 | UnderLine_Vid_Str = tt_tgetstr("us"); |
2668 | 2670 | |
| 2671 | Italic_Vid_Str = "\033[3m"; |
| 2672 | |
2669 | 2673 | Start_Alt_Chars_Str = tt_tgetstr ("as"); /* smacs */ |
2670 | 2674 | End_Alt_Chars_Str = tt_tgetstr ("ae"); /* rmacs */ |
2671 | 2675 | Enable_Alt_Char_Set = tt_tgetstr ("eA"); /* enacs */ |
… |
… |
|
2862 | 2866 | Bold_Vid_Str = "\033[1m"; |
2863 | 2867 | Blink_Vid_Str = "\033[5m"; |
2864 | 2868 | UnderLine_Vid_Str = "\033[4m"; |
| 2869 | Italic_Vid_Str = "\033[3m"; |
2865 | 2870 | Del_Eol_Str = "\033[K"; |
2866 | 2871 | Del_Bol_Str = "\033[1K"; |
2867 | 2872 | Rev_Scroll_Str = "\033M"; |