merge
commit
dc8d51903f
|
@ -13,6 +13,9 @@ rio, label, window, wloc \- window system
|
||||||
.B -s
|
.B -s
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
|
.B -b
|
||||||
|
]
|
||||||
|
[
|
||||||
.B -f
|
.B -f
|
||||||
.I font
|
.I font
|
||||||
]
|
]
|
||||||
|
@ -92,6 +95,10 @@ The
|
||||||
option initializes windows so that text scrolls;
|
option initializes windows so that text scrolls;
|
||||||
the default is not to scroll.
|
the default is not to scroll.
|
||||||
The
|
The
|
||||||
|
.B -b
|
||||||
|
option reverses the normal color sheme for windows, painting white
|
||||||
|
text on a black background.
|
||||||
|
The
|
||||||
.I font
|
.I font
|
||||||
argument names a font used to display text, both in
|
argument names a font used to display text, both in
|
||||||
.IR rio 's
|
.IR rio 's
|
||||||
|
|
|
@ -8,9 +8,16 @@ rio \- window system files
|
||||||
.BI ' cmd '
|
.BI ' cmd '
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
|
.B -k
|
||||||
|
.BI ' kbdcmd '
|
||||||
|
]
|
||||||
|
[
|
||||||
.B -s
|
.B -s
|
||||||
]
|
]
|
||||||
[
|
[
|
||||||
|
.B -b
|
||||||
|
]
|
||||||
|
[
|
||||||
.B -f
|
.B -f
|
||||||
.I font
|
.I font
|
||||||
]
|
]
|
||||||
|
|
|
@ -46,6 +46,7 @@ Channel* initkbd(void);
|
||||||
|
|
||||||
char *fontname;
|
char *fontname;
|
||||||
int mainpid;
|
int mainpid;
|
||||||
|
int reverse;
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
@ -134,6 +135,9 @@ threadmain(int argc, char *argv[])
|
||||||
kbdin = nil;
|
kbdin = nil;
|
||||||
maxtab = 0;
|
maxtab = 0;
|
||||||
ARGBEGIN{
|
ARGBEGIN{
|
||||||
|
case 'b':
|
||||||
|
reverse = ~0xFF;
|
||||||
|
break;
|
||||||
case 'f':
|
case 'f':
|
||||||
fontname = ARGF();
|
fontname = ARGF();
|
||||||
if(fontname == nil)
|
if(fontname == nil)
|
||||||
|
|
|
@ -21,9 +21,10 @@ enum
|
||||||
MinWater = 20000, /* room to leave available when reallocating */
|
MinWater = 20000, /* room to leave available when reallocating */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extern int reverse; /* there are no pastel paints in the dungeons and dragons world -- rob pike */
|
||||||
|
|
||||||
static int topped;
|
static int topped;
|
||||||
static int id;
|
static int id;
|
||||||
static int reverse;
|
|
||||||
|
|
||||||
static Image *cols[NCOL];
|
static Image *cols[NCOL];
|
||||||
static Image *grey;
|
static Image *grey;
|
||||||
|
@ -43,13 +44,6 @@ wmk(Image *i, Mousectl *mc, Channel *ck, Channel *cctl, int scrolling)
|
||||||
Rectangle r;
|
Rectangle r;
|
||||||
|
|
||||||
if(cols[0] == nil){
|
if(cols[0] == nil){
|
||||||
/* there are no pastel paints in the dungeons and dragons world
|
|
||||||
* - rob pike
|
|
||||||
*/
|
|
||||||
reverse = 0;
|
|
||||||
if(getenv("reverse") != nil)
|
|
||||||
reverse = ~0xFF;
|
|
||||||
|
|
||||||
/* greys are multiples of 0x11111100+0xFF, 14* being palest */
|
/* greys are multiples of 0x11111100+0xFF, 14* being palest */
|
||||||
grey = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0xEEEEEEFF^reverse);
|
grey = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0xEEEEEEFF^reverse);
|
||||||
darkgrey = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0x666666FF^reverse);
|
darkgrey = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0x666666FF^reverse);
|
||||||
|
|
Loading…
Reference in New Issue