Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
kterm
kterm-6.2.0-16colors.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kterm-6.2.0-16colors.diff of Package kterm
diff -ur kterm-6.2.0.org/KTerm.ad kterm-6.2.0/KTerm.ad --- kterm-6.2.0.org/KTerm.ad Sun Jun 23 17:00:22 1996 +++ kterm-6.2.0/KTerm.ad Fri Sep 11 04:45:30 1998 @@ -98,13 +98,21 @@ !*VT100*lineSpace: 0 !*VT100*textColor0: Black -!*VT100*textColor1: Red -!*VT100*textColor2: Green -!*VT100*textColor3: Yellow -!*VT100*textColor4: Blue -!*VT100*textColor5: Magenta -!*VT100*textColor6: Cyan -!*VT100*textColor7: White +!*VT100*textColor1: Red4 +!*VT100*textColor2: Green4 +!*VT100*textColor3: Yellow4 +!*VT100*textColor4: Blue4 +!*VT100*textColor5: Magenta4 +!*VT100*textColor6: Cyan4 +!*VT100*textColor7: Gray55 +!*VT100*textColor8: Gray30 +!*VT100*textColor9: Red +!*VT100*textColor10: Green +!*VT100*textColor11: Yellow +!*VT100*textColor12: Blue +!*VT100*textColor13: Magenta +!*VT100*textColor14: Cyan +!*VT100*textColor15: White *tekMenu.Label: Tek Options *tekMenu*tektextlarge*Label: Large Characters diff -ur kterm-6.2.0.org/charproc.c kterm-6.2.0/charproc.c --- kterm-6.2.0.org/charproc.c Fri Jul 12 14:01:36 1996 +++ kterm-6.2.0/charproc.c Fri Sep 11 04:45:30 1998 @@ -143,6 +143,14 @@ #define XtNtextColor5 "textColor5" #define XtNtextColor6 "textColor6" #define XtNtextColor7 "textColor7" +#define XtNtextColor8 "textColor8" +#define XtNtextColor9 "textColor9" +#define XtNtextColor10 "textColor10" +#define XtNtextColor11 "textColor11" +#define XtNtextColor12 "textColor12" +#define XtNtextColor13 "textColor13" +#define XtNtextColor14 "textColor14" +#define XtNtextColor15 "textColor15" #endif /* KTERM_COLOR */ #define XtNcutNewline "cutNewline" #define XtNcutToBeginningOfLine "cutToBeginningOfLine" @@ -557,25 +565,49 @@ XtRString, "Black"}, {XtNtextColor1, XtCForeground, XtRPixel, sizeof(Pixel), XtOffsetOf(XtermWidgetRec, screen.textcolor[1]), - XtRString, "Red"}, + XtRString, "Red4"}, {XtNtextColor2, XtCForeground, XtRPixel, sizeof(Pixel), XtOffsetOf(XtermWidgetRec, screen.textcolor[2]), - XtRString, "Green"}, + XtRString, "Green4"}, {XtNtextColor3, XtCForeground, XtRPixel, sizeof(Pixel), XtOffsetOf(XtermWidgetRec, screen.textcolor[3]), - XtRString, "Yellow"}, + XtRString, "Yellow4"}, {XtNtextColor4, XtCForeground, XtRPixel, sizeof(Pixel), XtOffsetOf(XtermWidgetRec, screen.textcolor[4]), - XtRString, "Blue"}, + XtRString, "Blue4"}, {XtNtextColor5, XtCForeground, XtRPixel, sizeof(Pixel), XtOffsetOf(XtermWidgetRec, screen.textcolor[5]), - XtRString, "Magenta"}, + XtRString, "Magenta4"}, {XtNtextColor6, XtCForeground, XtRPixel, sizeof(Pixel), XtOffsetOf(XtermWidgetRec, screen.textcolor[6]), - XtRString, "Cyan"}, + XtRString, "Cyan4"}, {XtNtextColor7, XtCForeground, XtRPixel, sizeof(Pixel), XtOffsetOf(XtermWidgetRec, screen.textcolor[7]), - XtRString, "White"}, + XtRString, "gray55"}, +{XtNtextColor8, XtCForeground, XtRPixel, sizeof(Pixel), + XtOffsetOf(XtermWidgetRec, screen.textcolor[8]), + XtRString, "gray30"}, +{XtNtextColor9, XtCForeground, XtRPixel, sizeof(Pixel), + XtOffsetOf(XtermWidgetRec, screen.textcolor[9]), + XtRString, "red"}, +{XtNtextColor10, XtCForeground, XtRPixel, sizeof(Pixel), + XtOffsetOf(XtermWidgetRec, screen.textcolor[10]), + XtRString, "green"}, +{XtNtextColor11, XtCForeground, XtRPixel, sizeof(Pixel), + XtOffsetOf(XtermWidgetRec, screen.textcolor[11]), + XtRString, "yellow"}, +{XtNtextColor12, XtCForeground, XtRPixel, sizeof(Pixel), + XtOffsetOf(XtermWidgetRec, screen.textcolor[12]), + XtRString, "blue"}, +{XtNtextColor13, XtCForeground, XtRPixel, sizeof(Pixel), + XtOffsetOf(XtermWidgetRec, screen.textcolor[13]), + XtRString, "magenta"}, +{XtNtextColor14, XtCForeground, XtRPixel, sizeof(Pixel), + XtOffsetOf(XtermWidgetRec, screen.textcolor[14]), + XtRString, "cyan"}, +{XtNtextColor15, XtCForeground, XtRPixel, sizeof(Pixel), + XtOffsetOf(XtermWidgetRec, screen.textcolor[15]), + XtRString, "white"}, #endif /* KTERM_COLOR */ {XtNeightBitInput, XtCEightBitInput, XtRBoolean, sizeof(Boolean), XtOffsetOf(XtermWidgetRec, screen.input_eight_bits), @@ -1629,6 +1661,9 @@ case 37: term->flags &= ~FORECOLORMASK; term->flags |= FORECOLORED|FORECOLOR(param[row]-30); + /* Set highlight bit if bold on */ + if (term->flags & BOLD) + term->flags |= FOREHILITED; break; case 39: term->flags &= ~FORECOLORED; diff -ur kterm-6.2.0.org/ptyx.h kterm-6.2.0/ptyx.h --- kterm-6.2.0.org/ptyx.h Tue Jul 2 14:01:53 1996 +++ kterm-6.2.0/ptyx.h Fri Sep 11 04:45:30 1998 @@ -300,7 +300,7 @@ Pixel mousecolor; /* Mouse color */ Pixel mousecolorback; /* Mouse color background */ #ifdef KTERM_COLOR - Pixel textcolor[8]; /* text colors */ + Pixel textcolor[16]; /* text colors */ #endif /* KTERM_COLOR */ int border; /* inner border */ Cursor arrow; /* arrow cursor */ @@ -627,7 +627,7 @@ */ #ifdef KTERM_COLOR -#define ATTRIBUTES 0xff07 /* mask: user-visible attributes */ +#define ATTRIBUTES 0xffc7 /* mask: user-visible attributes */ #else /* !KTERM_COLOR */ #define ATTRIBUTES 0x07 /* mask: user-visible attributes */ #endif /* !KTERM_COLOR */ @@ -648,12 +648,13 @@ screen. Used to distinguish blanks from empty parts of the screen when selecting */ #ifdef KTERM_COLOR -#define FORECOLORED 0x0800 -#define FORECOLORMASK 0x0700 +#define FORECOLORED 0x0040 +#define FOREHILITED 0x0800 +#define FORECOLORMASK 0x0f00 #define FORECOLOR(c) ((c) << 8) #define FORECOLORNUM(f) (((f) & FORECOLORMASK) >> 8) -#define BACKCOLORED 0x8000 -#define BACKCOLORMASK 0x7000 +#define BACKCOLORED 0x0080 +#define BACKCOLORMASK 0xf000 #define BACKCOLOR(c) ((c) << 12) #define BACKCOLORNUM(f) (((f) & BACKCOLORMASK) >> 12) #endif /* KTERM_COLOR */
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor