From 7a88382dc38c71c7258b867d19ab4367dedbd166 Mon Sep 17 00:00:00 2001 From: Kazutaka YOKOTA Date: Mon, 8 Nov 1999 14:16:48 +0000 Subject: [PATCH] - Document SC_TWOBUTTON_MOUSE, SC_NORM_ATTR, SC_NORM_REV_ATTR, SC_KERNEL_CONS_ATTR and SC_KERNEL_CONS_REV_ATTR. Nudged by eivind --- share/man/man4/man4.i386/syscons.4 | 47 ++++++++++++++++++++++++++++++ share/man/man4/syscons.4 | 47 ++++++++++++++++++++++++++++++ sys/conf/NOTES | 10 +++++++ sys/i386/conf/LINT | 10 +++++++ sys/i386/conf/NOTES | 10 +++++++ 5 files changed, 124 insertions(+) diff --git a/share/man/man4/man4.i386/syscons.4 b/share/man/man4/man4.i386/syscons.4 index 2c03a964a42..48b9d85f1b4 100644 --- a/share/man/man4/man4.i386/syscons.4 +++ b/share/man/man4/man4.i386/syscons.4 @@ -47,6 +47,11 @@ the console driver .Cd "options SC_NO_PALETTE_LOADING" .Cd "options SC_NO_SYSMOUSE" .Cd "options SC_PIXEL_MODE" +.Cd "options SC_TWOBUTTON_MOUSE +.Cd "options SC_NORM_ATTR"=\&"_attribute_\&" +.Cd "options SC_NORM_REV_ATTR"=\&"_attribute_\&" +.Cd "options SC_KERNEL_CONS_ATTR"=\&"_attribute_\&" +.Cd "options SC_KERNEL_CONS_REV_ATTR"=\&"_attribute_\&" .Cd "options SC_DFLT_FONT" .Cd "makeoptions SC_DFLT_FONT"=\&"_font_name_\&" .Cd "device sc0 at isa?" @@ -189,6 +194,15 @@ the selected region. The selected text is placed in the copy buffer and can be pasted at the cursor position by your pressing the button 2 (usually the middle button) as many times as you like. +.Pp +If your mouse has only two buttons, you may want to use the +.Em SC_TWOBUTTON_MOUSE +option below to make the right button to paste the text. +Alternatively you can make the mouse daemon +to emulate the middle button. +See the man page for +.Xr moused 8 +for more details. .Ss Back Scrolling The .Nm @@ -282,6 +296,22 @@ If the this option is NOT defined, you can reduce the kernel size a lot. See the .Em VESA800X600 flag below. +.It Em SC_TWOBUTTON_MOUSE +If you have a two button mouse, you may want to add this option +to use the right button of the mouse to paste text. +See +.Sx Mouse Support and Copy-and-Paste +above. +.It Em SC_NORM_ATTR=\&"_attribute_\&" +.It Em SC_NORM_REV_ATTR=\&"_attribute_\&" +.It Em SC_KERNEL_CONS_ATTR=\&"_attribute_\&" +.It Em SC_KERNEL_CONS_REV_ATTR=\&"_attribute_\&" +These options will set the default colors. +Available colors are defined in +.Pa /usr/include/machine/pc/display.h . +See +.Sx EXAMPLE +below. .It Em SC_DFLT_FONT This option will specify the default font. Available fonts are: iso, iso2, koi8-r, cp437, cp850, cp865 and cp866. @@ -400,6 +430,23 @@ Note that the keyboard controller driver is required by the keyboard driver .Nm atkbd . .Pp +The following lines will set the default colors. +The normal text will be green on black background. +The reversed text will be yellow on green background. +Note that you cannot put any white space inside the quoted string, +because of the current implementation of +.Xr config 8 . +.Pp +.Dl "options SC_NORM_ATTR"=\&"(FG_GREEN|BG_BLACK)\&" +.Dl "options SC_NORM_REV_ATTR"=\&"(FG_YELLOW|BG_GREEN)\&" +.Pp +The following lines will set the default colors of the kernel message. +The kernel message will be printed bright red on black background. +The reversed message will be black on red background. +.Pp +.Dl "options SC_KERNEL_CONS_ATTR"=\&"(FG_LIGHTRED|BG_BLACK)\&" +.Dl "options SC_KERNEL_CONS_REV_ATTR"=\&"(FG_BLACK|BG_RED)\&" +.Pp The following example adds the font files .Pa cp850-8x16.fnt , .Pa cp850-8x14.font diff --git a/share/man/man4/syscons.4 b/share/man/man4/syscons.4 index 2c03a964a42..48b9d85f1b4 100644 --- a/share/man/man4/syscons.4 +++ b/share/man/man4/syscons.4 @@ -47,6 +47,11 @@ the console driver .Cd "options SC_NO_PALETTE_LOADING" .Cd "options SC_NO_SYSMOUSE" .Cd "options SC_PIXEL_MODE" +.Cd "options SC_TWOBUTTON_MOUSE +.Cd "options SC_NORM_ATTR"=\&"_attribute_\&" +.Cd "options SC_NORM_REV_ATTR"=\&"_attribute_\&" +.Cd "options SC_KERNEL_CONS_ATTR"=\&"_attribute_\&" +.Cd "options SC_KERNEL_CONS_REV_ATTR"=\&"_attribute_\&" .Cd "options SC_DFLT_FONT" .Cd "makeoptions SC_DFLT_FONT"=\&"_font_name_\&" .Cd "device sc0 at isa?" @@ -189,6 +194,15 @@ the selected region. The selected text is placed in the copy buffer and can be pasted at the cursor position by your pressing the button 2 (usually the middle button) as many times as you like. +.Pp +If your mouse has only two buttons, you may want to use the +.Em SC_TWOBUTTON_MOUSE +option below to make the right button to paste the text. +Alternatively you can make the mouse daemon +to emulate the middle button. +See the man page for +.Xr moused 8 +for more details. .Ss Back Scrolling The .Nm @@ -282,6 +296,22 @@ If the this option is NOT defined, you can reduce the kernel size a lot. See the .Em VESA800X600 flag below. +.It Em SC_TWOBUTTON_MOUSE +If you have a two button mouse, you may want to add this option +to use the right button of the mouse to paste text. +See +.Sx Mouse Support and Copy-and-Paste +above. +.It Em SC_NORM_ATTR=\&"_attribute_\&" +.It Em SC_NORM_REV_ATTR=\&"_attribute_\&" +.It Em SC_KERNEL_CONS_ATTR=\&"_attribute_\&" +.It Em SC_KERNEL_CONS_REV_ATTR=\&"_attribute_\&" +These options will set the default colors. +Available colors are defined in +.Pa /usr/include/machine/pc/display.h . +See +.Sx EXAMPLE +below. .It Em SC_DFLT_FONT This option will specify the default font. Available fonts are: iso, iso2, koi8-r, cp437, cp850, cp865 and cp866. @@ -400,6 +430,23 @@ Note that the keyboard controller driver is required by the keyboard driver .Nm atkbd . .Pp +The following lines will set the default colors. +The normal text will be green on black background. +The reversed text will be yellow on green background. +Note that you cannot put any white space inside the quoted string, +because of the current implementation of +.Xr config 8 . +.Pp +.Dl "options SC_NORM_ATTR"=\&"(FG_GREEN|BG_BLACK)\&" +.Dl "options SC_NORM_REV_ATTR"=\&"(FG_YELLOW|BG_GREEN)\&" +.Pp +The following lines will set the default colors of the kernel message. +The kernel message will be printed bright red on black background. +The reversed message will be black on red background. +.Pp +.Dl "options SC_KERNEL_CONS_ATTR"=\&"(FG_LIGHTRED|BG_BLACK)\&" +.Dl "options SC_KERNEL_CONS_REV_ATTR"=\&"(FG_BLACK|BG_RED)\&" +.Pp The following example adds the font files .Pa cp850-8x16.fnt , .Pa cp850-8x14.font diff --git a/sys/conf/NOTES b/sys/conf/NOTES index 24e76161212..11f9316ea0b 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -982,6 +982,16 @@ options SC_HISTORY_SIZE=200 # number of history buffer lines options SC_MOUSE_CHAR=0x3 # char code for text mode mouse cursor options SC_PIXEL_MODE # add support for the raster text mode +# The following options will let you change the default colors of syscons. +options SC_NORM_ATTR="(FG_GREEN|BG_BLACK)" +options SC_NORM_REV_ATTR="(FG_YELLOW|BG_GREEN)" +options SC_KERNEL_CONS_ATTR="(FG_RED|BG_BLACK)" +options SC_KERNEL_CONS_REV_ATTR="(FG_BLACK|BG_RED)" + +# If you have a two button mouse, you may want to add the following option +# to use the right button of the mouse to paste text. +options SC_TWOBUTTON_MOUSE + # You can selectively disable features in syscons. options SC_NO_CUTPASTE options SC_NO_FONT_LOADING diff --git a/sys/i386/conf/LINT b/sys/i386/conf/LINT index 24e76161212..11f9316ea0b 100644 --- a/sys/i386/conf/LINT +++ b/sys/i386/conf/LINT @@ -982,6 +982,16 @@ options SC_HISTORY_SIZE=200 # number of history buffer lines options SC_MOUSE_CHAR=0x3 # char code for text mode mouse cursor options SC_PIXEL_MODE # add support for the raster text mode +# The following options will let you change the default colors of syscons. +options SC_NORM_ATTR="(FG_GREEN|BG_BLACK)" +options SC_NORM_REV_ATTR="(FG_YELLOW|BG_GREEN)" +options SC_KERNEL_CONS_ATTR="(FG_RED|BG_BLACK)" +options SC_KERNEL_CONS_REV_ATTR="(FG_BLACK|BG_RED)" + +# If you have a two button mouse, you may want to add the following option +# to use the right button of the mouse to paste text. +options SC_TWOBUTTON_MOUSE + # You can selectively disable features in syscons. options SC_NO_CUTPASTE options SC_NO_FONT_LOADING diff --git a/sys/i386/conf/NOTES b/sys/i386/conf/NOTES index 24e76161212..11f9316ea0b 100644 --- a/sys/i386/conf/NOTES +++ b/sys/i386/conf/NOTES @@ -982,6 +982,16 @@ options SC_HISTORY_SIZE=200 # number of history buffer lines options SC_MOUSE_CHAR=0x3 # char code for text mode mouse cursor options SC_PIXEL_MODE # add support for the raster text mode +# The following options will let you change the default colors of syscons. +options SC_NORM_ATTR="(FG_GREEN|BG_BLACK)" +options SC_NORM_REV_ATTR="(FG_YELLOW|BG_GREEN)" +options SC_KERNEL_CONS_ATTR="(FG_RED|BG_BLACK)" +options SC_KERNEL_CONS_REV_ATTR="(FG_BLACK|BG_RED)" + +# If you have a two button mouse, you may want to add the following option +# to use the right button of the mouse to paste text. +options SC_TWOBUTTON_MOUSE + # You can selectively disable features in syscons. options SC_NO_CUTPASTE options SC_NO_FONT_LOADING