ref: dc8d51903f27892c54445dd66992e0ebe8c63fca
parent: 279ffaab222f1a941aeec9653810f0a7e8001d9c
parent: 0709558dd6fead54efdad4ca5e4eb0783ba4c9c5
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Sun Nov 20 21:23:44 EST 2011
merge
--- a/sys/man/1/rio
+++ b/sys/man/1/rio
@@ -13,6 +13,9 @@
.B -s
]
[
+.B -b
+]
+[
.B -f
.I font
]
@@ -91,6 +94,10 @@
.B -s
option initializes windows so that text scrolls;
the default is not to scroll.
+The
+.B -b
+option reverses the normal color sheme for windows, painting white
+text on a black background.
The
.I font
argument names a font used to display text, both in
--- a/sys/man/4/rio
+++ b/sys/man/4/rio
@@ -8,7 +8,14 @@
.BI ' cmd '
]
[
+.B -k
+.BI ' kbdcmd '
+]
+[
.B -s
+]
+[
+.B -b
]
[
.B -f
--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -46,6 +46,7 @@
char *fontname;
int mainpid;
+int reverse;
enum
{
@@ -134,6 +135,9 @@
kbdin = nil;
maxtab = 0;
ARGBEGIN{
+ case 'b':
+ reverse = ~0xFF;
+ break;
case 'f':
fontname = ARGF();
if(fontname == nil)
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -21,9 +21,10 @@
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 id;
-static int reverse;
static Image *cols[NCOL];
static Image *grey;
@@ -43,13 +44,6 @@
Rectangle r;
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 */
grey = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0xEEEEEEFF^reverse);
darkgrey = allocimage(display, Rect(0,0,1,1), CMAP8, 1, 0x666666FF^reverse);
--
⑨