it builds, we have 3 colors available.
This commit is contained in:
parent
59032de031
commit
a49815838c
3 changed files with 41 additions and 31 deletions
2
config.h
2
config.h
|
|
@ -86,6 +86,8 @@ static unsigned int tabspaces = 8;
|
|||
/* bg opacity */
|
||||
static const int alpha = 0xdd;
|
||||
|
||||
static int whichcolortable = 0;
|
||||
|
||||
static char *colornames[3][260] = {
|
||||
// cobalt neon
|
||||
{
|
||||
|
|
|
|||
47
st.c
47
st.c
|
|
@ -337,9 +337,9 @@ static void selpaste(const Arg *);
|
|||
static void xzoom(const Arg *);
|
||||
static void xzoomabs(const Arg *);
|
||||
static void xzoomreset(const Arg *);
|
||||
static void printsel(const Arg *);
|
||||
static void printscreen(const Arg *) ;
|
||||
static void toggleprinter(const Arg *);
|
||||
// static void printsel(const Arg *);
|
||||
// static void printscreen(const Arg *) ;
|
||||
// static void toggleprinter(const Arg *);
|
||||
static void sendbreak(const Arg *);
|
||||
|
||||
/* Config.h for applying patches and the configuration. */
|
||||
|
|
@ -2611,23 +2611,23 @@ tprinter(char *s, size_t len)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
toggleprinter(const Arg *arg)
|
||||
{
|
||||
term.mode ^= MODE_PRINT;
|
||||
}
|
||||
// void
|
||||
// toggleprinter(const Arg *arg)
|
||||
// {
|
||||
// term.mode ^= MODE_PRINT;
|
||||
// }
|
||||
|
||||
void
|
||||
printscreen(const Arg *arg)
|
||||
{
|
||||
tdump();
|
||||
}
|
||||
// void
|
||||
// printscreen(const Arg *arg)
|
||||
// {
|
||||
// tdump();
|
||||
// }
|
||||
|
||||
void
|
||||
printsel(const Arg *arg)
|
||||
{
|
||||
tdumpsel();
|
||||
}
|
||||
// void
|
||||
// printsel(const Arg *arg)
|
||||
// {
|
||||
// tdumpsel();
|
||||
// }
|
||||
|
||||
void
|
||||
tdumpsel(void)
|
||||
|
|
@ -3167,7 +3167,8 @@ sixd_to_16bit(int x)
|
|||
|
||||
const char* getcolorname(int i)
|
||||
{
|
||||
return (usealtcolors) ? altcolorname[i] : colorname[i];
|
||||
return colornames[whichcolortable][i];
|
||||
// return (usealtcolors) ? altcolorname[i] : colorname[i];
|
||||
}
|
||||
|
||||
int
|
||||
|
|
@ -4170,7 +4171,13 @@ numlock(const Arg *dummy)
|
|||
void
|
||||
swapcolors(const Arg *dummy)
|
||||
{
|
||||
usealtcolors = !usealtcolors;
|
||||
// usealtcolors = !usealtcolors;
|
||||
whichcolortable = whichcolortable +1;
|
||||
printf("%d, %d\n",whichcolortable,
|
||||
sizeof(colornames)/sizeof(colornames[0]) );
|
||||
if ( whichcolortable >= sizeof(colornames)/sizeof(colornames[0]) ) {
|
||||
whichcolortable = 0;
|
||||
}
|
||||
xloadcols();
|
||||
redraw();
|
||||
}
|
||||
|
|
|
|||
1
xrdb
Symbolic link
1
xrdb
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
iterm2colors/xrdb
|
||||
Loading…
Add table
Add a link
Reference in a new issue