Commit Graph

64 Commits

Author SHA1 Message Date
hubertf f3d4ac7cff Portuguese keyboards are supported to.
By Rui Paulo in PR 29884.
2005-04-05 12:17:17 +00:00
uwe 410c49bf05 Support backlight, brightness and contrast wsdisplay paramteres.
Useful for hpc* ports.
2005-02-27 15:26:16 +00:00
joff 9ff2922f8d o Add missing SGI wskbd type
o Add new MATRIXKP wskbd type
2005-01-31 06:24:08 +00:00
xtraeme 76500fc2f9 WARNS=2 is the default defined in sbin/Makefile.inc. (thanks wiz) 2005-01-20 16:39:22 +00:00
xtraeme 844f4c525d Kill __P(), ANSIfy, remove main() prototype; WARNS=2 2005-01-19 20:37:52 +00:00
jmmv ea287a80b7 Add 2004 to copyright notice as these has been significantly modified recently. 2004-07-30 15:22:42 +00:00
jmmv 1e4eaac87a Add an example on how to change the kernel message colors. This is
illustrative because it shows the use of the '-d' flag and how one can
set multiple variables in the same run of wsconsctl(8).
2004-07-30 11:21:16 +00:00
jmmv fcc698e864 Do not show several variables when they are not available.
At the moment this only affects the display part, hiding console colors,
border color and/or console scrollback if their respective ioctls are
not supported by the running kernel.

Trying to write to these variables will still fail with the correct ioctl
error message.
2004-07-30 11:08:03 +00:00
jmmv 2a08d54a9a Implement border color customization in wscons(4), only available for vga(4)
at the moment.

This includes the addition of two new wsdisplay ioctls, WSDISPLAY_{G,S}BORDER,
one to get the actual color and one to set it, respectively.  Possible colors
match those defined by ANSI (and listed in wsdisplayvar.h).

It also adds two accessops to the underlying graphics device, getborder and
setborder, which mach their ioctl counterparts.

Two kernel options are added: WSDISPLAY_CUSTOM_BORDER, which enables the
ioctls described above (to customize the border color from userland after
boot), and WSDISPLAY_BORDER_COLOR, which sets the color at boot time.
The former is enabled by default on the GENERIC kernel, but not on INSTALL
(among others).  The later is always commented out, leaving the usual black
border as a default.

wsconsctl is modified to allow accessing this value easily.  For example,
'wsconsctl -d -w border=blue'.
2004-07-29 22:29:35 +00:00
jmmv 92f81ea7d3 Implement support to dynamically change wscons console and kernel colors.
Two new ioctls are added to the wsdisplay device, named WSDISPLAY_GMSGATTRS
and WSDISPLAY_SMSGATTRS, used to retrieve the actual values and set them,
respectively (the name, if you are wondering, comes from "message attributes").

A new emulop is added to the underlying display driver (only vga, for now)
which sets the new attribute for the whole screen, without having to clear
it.  This is optional, which means that this also works with other drivers
that don't have this new operation.

Five new kernel options have been added, although only documented in
i386 kernels (for now):
- WSDISPLAY_CUSTOM_OUTPUT, which enables the ioctls described above to
  change the colors dynamically from userland.  This is enabled by default
  in the GENERIC kernel (as well as others) but disabled on all INSTALL*
  kernels (as this feature is useless there).
- WS_DEFAULT_COLATTR, WS_DEFAULT_MONOATTR, WS_DEFAULT_BG and WS_DEFAULT_FG,
  which specify the default colors for the console at boot time.  These have
  the same meaning as the (already existing) WS_KERNEL_* variables.

wsconsctl is modified to add msg.default.{attrs,bg,fg} and
msg.kernel.{attrs,bg,fg} to the display part, so that colors can be changed
after boot.

Tested on NetBSD/i386 with vga (and vga in mono mode), and on NetBSD/mac68k.
No objections in tech-kern@.
2004-07-28 12:34:02 +00:00
christos d12d56b3d9 PR/26101: Dheeraj: WSKBDIO_GETSCROLL: Operation not supported by device
should not be fatal.
2004-06-28 20:01:33 +00:00
itohy 8e9e692241 Fix typos in comment. 2004-06-27 02:09:47 +00:00
wiz b4778d6de7 Sync usage with man page (add -w name+=value).
Closes PR 25876 by Kouichirou Hiratsuka.
2004-06-25 14:33:48 +00:00
christos 67ec024858 If scrolling support is not compiled in the kernel, fail gracefully. 2004-06-03 19:18:41 +00:00
christos 798847428e PR/19925: David Ferlier: add scrolling support to wscons 2004-05-28 21:44:15 +00:00
wiz 325e9d47ba Add comma in enumeration. 2004-05-13 16:05:02 +00:00
pooka fb446888fc + note finnish encoding
+ shuffle things around a bit, since the encodings we were listing
  were not countries (most of them were languages)
2004-05-13 16:01:45 +00:00
heas fff8a9120b Add descriptions for SGI & Sun specific displays that were added to wsconsio.h
in revisions 1.59 - 1.61.
2004-04-02 22:16:52 +00:00
heas c3ae7aa4c2 Add text descriptions for wskbd types sun and sun-type5. 2004-01-21 15:39:34 +00:00
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
lukem ddff99b7f4 rework to use the newer _MKMSGCREATE (et al) macros 2003-10-19 04:45:01 +00:00
lukem 8564ba3934 support MAKEVERBOSE and use ${HOST_SH} 2003-10-19 01:23:27 +00:00
lukem a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
lukem ebf8a4f11a move ${DEPENDSRCS} target to after .include <bsd.*.mk> 2003-07-29 01:45:33 +00:00
lukem eb51573bd7 Use ${DEPENDSRCS} as a target instead of .depend, now that
<bsd.dep.mk> builds .depend from .dep files.
2003-07-28 15:25:02 +00:00
jmmv 6c34824459 Explicitly close open file descriptor before exiting. 2003-05-04 11:54:59 +00:00
wiz 9cdee53232 Some minor fixes from Soren Jacobsen in PR 21017. 2003-04-05 09:22:22 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
thomas 5d2b072ae0 Define Atari keyboard type. 2003-01-31 23:32:21 +00:00
itohy 32c9c7f1cc Add WSKBD_TYPE_MAPLE and WSMOUSE_TYPE_MAPLE for Dreamcast Maple bus devices. 2002-12-10 13:05:09 +00:00
wiz 09cbac4e7f New sentence, new line. From Robert Elz. 2002-10-03 15:41:44 +00:00
wiz 803f71d406 Sort supported languages, and sync them with reality, as suggested by
Julio Merino in bin/17993, with a minor correction.
2002-08-19 18:27:31 +00:00
hannken 01647c299e Allow setting display's font. 2002-04-07 10:40:04 +00:00
ad a66008a0b5 Add WSMOUSE_TYPE_MAXINE. 2002-02-24 02:01:40 +00:00
yamt 2584fed461 s/read only/write only/ for FLG_WRONLY. 2002-02-18 17:00:16 +00:00
tv 01c2615055 Move the inclusion of <bsd.prog.mk> up so that keysym.h can have ${DESTDIR}
properly in its dependency list.
2002-01-30 20:32:29 +00:00
jandberg dd3802a0b8 added amiga display/mouse/keyboard types 2002-01-13 18:16:10 +00:00
ad 3c1dbe4aee Fix typo; pointed out by Gregory McGarry. :-) 2001-12-04 09:56:31 +00:00
gmcgarry d4ff414a7d Update for new HP devices. Add some others while here.
Pointed out by Andrew Doran.
2001-12-04 04:31:56 +00:00
wiz 4ce43ae0cd Whitespace nits 2001-11-16 10:25:42 +00:00
ad 9824683b54 - Sync device lists with wsconsio.h.
- Get/set keyclick on keyboards that support it.
2001-09-19 12:45:24 +00:00
cgd 8a986b2e96 convert to use getprogname() 2001-02-19 22:48:57 +00:00
christos 3aed6f1e40 avoid redundant declaration 2001-02-04 21:16:59 +00:00
bjh21 9626c2fdbb Put the sections in the canonical order.
Fix formatting of '=' and '+='.
File names are .Pa, not .Ar.
2000-10-03 14:33:16 +00:00
hannken c269775813 Fix type of WSKBDIO_?ETENCODING. 2000-07-06 16:30:47 +00:00
matt 0f6818e4eb More include fixups and GCC 2.96 nonsense 2000-07-03 03:37:59 +00:00
sato 6edea77b3b add some keyboard and mouse type from sys/dev/wscons/wsconsio.h. 2000-03-14 08:11:53 +00:00
ad 6758a2722d Add new framebuffer types since 1.4 and change descriptions on a few
existing entries.
2000-03-13 10:43:15 +00:00
drochner d2f02dc8e3 remove a leftover debug message 1999-12-21 16:54:16 +00:00
ad 43df09c3a7 If we changed the sample rate or resolution, then say so. 1999-11-15 13:47:30 +00:00