console: the Sun look, black on light white - the magenta was hard on the eyes
amd64 and i386 GENERIC now use the defaults of sparc/conf/GENERIC:51-54 and
macppc/conf/GENERIC:141-144:
WS_DEFAULT_FG=WSCOL_BLACK WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
WS_KERNEL_FG=WSCOL_GREEN WS_KERNEL_BG=WSCOL_LIGHT_WHITE
sysinst loses the IRIX Indigo startup path (white on magenta, 2c30d21fd2):
do_coloring_startup() is gone, main.c calls do_coloring() again, and on a
fixed-colour console the first screen is the classic black on white with a
white-on-blue selection. The CDE palette path (can_change_color) is
unchanged.
Measured: sysinst builds (-Werror); nbconfig for both GENERIC produces the
four defines above in opt_wsmsgattrs.h.
This commit is contained in:
1 parent
3e16dea795
commit
866df91be6
5 files changed
+18
-54
No files matched your search
@@ -273,14 +273,13 @@ options WSEMUL_VT100 # VT100 / VT220 emulation
|
||||
#options WSEMUL_DEFAULT="\"vt100\"" # NB: default is "sun" if enabled
|
||||
# different kernel output - see dev/wscons/wsdisplayvar.h
|
||||
options WSDISPLAY_CUSTOM_OUTPUT # color customization from wsconsctl(8)
|
||||
# Makronix: the IRIX Indigo Magic console, not white on black. wscons names
|
||||
# only the ANSI colours; ANSI 5 (magenta, #AA00AA on VGA text) is the closest
|
||||
# to IRIX Indigo (#4B0082). The exact Indigo needs a colormap
|
||||
# (WSDISPLAYIO_PUTCMAP), which VGA text mode does not offer.
|
||||
options WS_DEFAULT_FG=WSCOL_LIGHT_WHITE
|
||||
options WS_DEFAULT_BG=WSCOL_MAGENTA
|
||||
# Makronix: the Sun console - black on light white, kernel messages green on
|
||||
# light white. The same defaults as sparc/conf/GENERIC:51-54 and
|
||||
# macppc/conf/GENERIC:141-144; the IRIX magenta was hard on the eyes.
|
||||
options WS_DEFAULT_FG=WSCOL_BLACK
|
||||
options WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
|
||||
options WS_KERNEL_FG=WSCOL_GREEN
|
||||
options WS_KERNEL_BG=WSCOL_MAGENTA
|
||||
options WS_KERNEL_BG=WSCOL_LIGHT_WHITE
|
||||
# customization of console border color
|
||||
options WSDISPLAY_CUSTOM_BORDER # custom border colors via wsconsctl(8)
|
||||
# compatibility to other console drivers
|
||||
|
||||
@@ -229,14 +229,12 @@ options WSEMUL_VT100 # VT100 / VT220 emulation
|
||||
options WSDISPLAY_CUSTOM_OUTPUT # color customization from wsconsctl(8)
|
||||
#options WS_DEFAULT_COLATTR="(0)"
|
||||
#options WS_DEFAULT_MONOATTR="(0)"
|
||||
# Makronix: the IRIX Indigo Magic console, the same defaults as amd64 (see
|
||||
# arch/amd64/conf/GENERIC). wscons names only the ANSI colours; ANSI 5
|
||||
# (magenta, #AA00AA on VGA text) is the closest to IRIX Indigo (#4B0082), whose
|
||||
# exact value needs a colormap (WSDISPLAYIO_PUTCMAP) VGA text mode lacks.
|
||||
options WS_DEFAULT_FG=WSCOL_LIGHT_WHITE
|
||||
options WS_DEFAULT_BG=WSCOL_MAGENTA
|
||||
# Makronix: the Sun console, as on amd64 (see arch/amd64/conf/GENERIC):
|
||||
# black on light white, kernel messages green on light white.
|
||||
options WS_DEFAULT_FG=WSCOL_BLACK
|
||||
options WS_DEFAULT_BG=WSCOL_LIGHT_WHITE
|
||||
options WS_KERNEL_FG=WSCOL_GREEN
|
||||
options WS_KERNEL_BG=WSCOL_MAGENTA
|
||||
options WS_KERNEL_BG=WSCOL_LIGHT_WHITE
|
||||
#options WS_KERNEL_COLATTR=""
|
||||
#options WS_KERNEL_MONOATTR=""
|
||||
# customization of console border color
|
||||
|
||||
@@ -908,7 +908,6 @@ int extract_file(distinfo *, int);
|
||||
int extract_file_to(distinfo *dist, int update, const char *dest_dir,
|
||||
const char *extr_pattern, bool do_stats);
|
||||
void do_coloring (unsigned int, unsigned int);
|
||||
void do_coloring_startup (unsigned int, unsigned int);
|
||||
int set_menu_select(menudesc *, void *);
|
||||
const char *safectime(time_t *);
|
||||
bool use_tgz_for_set(const char*);
|
||||
|
||||
@@ -205,9 +205,8 @@ init(void)
|
||||
|
||||
/*
|
||||
* Makronix: the CDE look, dark text on the palette's window colour.
|
||||
* Where the terminal has only the eight fixed colours, the first
|
||||
* screen takes the IRIX Indigo Magic console instead (light text on
|
||||
* ANSI magenta; see do_coloring_startup()).
|
||||
* With the eight fixed colours of a console this is black on white;
|
||||
* do_coloring() makes it the CDE colour where the terminal can.
|
||||
*/
|
||||
clr_arg.bg=COLOR_WHITE;
|
||||
clr_arg.fg=COLOR_BLACK;
|
||||
@@ -312,12 +311,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
if (has_colors()) {
|
||||
start_color();
|
||||
/*
|
||||
* Makronix: the first screen follows the console theme (the
|
||||
* IRIX Indigo Magic colours where the terminal has only the
|
||||
* eight fixed ones); the colour menu later stays classic.
|
||||
*/
|
||||
do_coloring_startup(clr_arg.fg, clr_arg.bg);
|
||||
do_coloring(clr_arg.fg, clr_arg.bg);
|
||||
}
|
||||
msg_window(mainwin);
|
||||
|
||||
|
||||
@@ -2359,9 +2359,8 @@ cde_contrast(int r, int g, int b)
|
||||
COLOR_BLACK : COLOR_CYAN;
|
||||
}
|
||||
|
||||
static void
|
||||
set_coloring(unsigned int fg, unsigned int bg, bool startup)
|
||||
{
|
||||
void
|
||||
do_coloring(unsigned int fg, unsigned int bg) {
|
||||
if (bg > COLOR_WHITE)
|
||||
bg = COLOR_BLUE;
|
||||
if (fg > COLOR_WHITE)
|
||||
@@ -2370,10 +2369,6 @@ set_coloring(unsigned int fg, unsigned int bg, bool startup)
|
||||
/*
|
||||
* The default pair is white background, black text: where the
|
||||
* terminal can redefine a colour, make that white the CDE one.
|
||||
* On a fixed-colour console (wscons, VGA text) the startup
|
||||
* takes the IRIX Indigo Magic colours instead: light text on
|
||||
* ANSI magenta, a black selection on light white and a black
|
||||
* box on magenta. The colour menu keeps the classic schemes.
|
||||
*/
|
||||
if (bg == COLOR_WHITE && fg == COLOR_BLACK) {
|
||||
/*
|
||||
@@ -2382,9 +2377,8 @@ set_coloring(unsigned int fg, unsigned int bg, bool startup)
|
||||
* redefinable palette: slot 5 is the window (COLOR_WHITE),
|
||||
* slot 6 the menu/dialog (COLOR_BLUE), slot 1 the active
|
||||
* line (COLOR_GREEN); the text colour is chosen for
|
||||
* contrast. With the eight fixed colours: IRIX white on
|
||||
* magenta at startup, or white on blue for the colour
|
||||
* menu.
|
||||
* contrast. With the eight fixed colours: white on blue,
|
||||
* blue box, menus on the window colour (pair 1).
|
||||
*/
|
||||
if (can_change_color()) {
|
||||
(void)init_color(COLOR_WHITE, CDE_BG_R,
|
||||
@@ -2399,12 +2393,6 @@ set_coloring(unsigned int fg, unsigned int bg, bool startup)
|
||||
init_pair(3, COLOR_BLUE, COLOR_WHITE);
|
||||
init_pair(4, cde_contrast(CDE_MENU_R,
|
||||
CDE_MENU_G, CDE_MENU_B), COLOR_BLUE);
|
||||
} else if (startup) {
|
||||
fg = COLOR_WHITE;
|
||||
bg = COLOR_MAGENTA;
|
||||
init_pair(2, COLOR_BLACK, COLOR_WHITE);
|
||||
init_pair(3, COLOR_BLACK, COLOR_MAGENTA);
|
||||
init_pair(4, COLOR_BLACK, COLOR_BLACK);
|
||||
} else {
|
||||
init_pair(2, COLOR_WHITE, COLOR_BLUE);
|
||||
init_pair(3, COLOR_BLUE, COLOR_WHITE);
|
||||
@@ -2434,20 +2422,6 @@ set_coloring(unsigned int fg, unsigned int bg, bool startup)
|
||||
return;
|
||||
}
|
||||
|
||||
void
|
||||
do_coloring(unsigned int fg, unsigned int bg)
|
||||
{
|
||||
|
||||
set_coloring(fg, bg, false);
|
||||
}
|
||||
|
||||
void
|
||||
do_coloring_startup(unsigned int fg, unsigned int bg)
|
||||
{
|
||||
|
||||
set_coloring(fg, bg, true);
|
||||
}
|
||||
|
||||
int
|
||||
set_menu_select(menudesc *m, void *arg)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user