summaryrefslogtreecommitdiffstats
path: root/sbin/wsconsctl/keyboard.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-19/+19
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* add keyboard backlight variablejung2015-12-121-1/+40
| | | | | | tested by Bryan Vyhmeister, krw, tb, and myself ok jcs krw tb
* Correctly issue WSKBDIO_GETDEFAULTKEYREPEAT instead of WSKBDIO_GETKEYREPEATmiod2013-03-211-3/+3
| | | | | ioctl when getting the default repeat settings; bug report by ``Creamy'' on tech@
* fix type (part from NetBSD)shadchin2012-08-081-3/+3
| | | | ok miod@
* Don't silently ignore errors if we cannot open the device. While I'm herefgsch2010-08-201-15/+8
| | | | | simplify the code and apply some style(9). Discussed with and ok miod@
* Learn wsconsctl to handle more than the first keyboard, mouse and display.maja2010-07-011-1/+20
| | | | | | | | E.g. if we have a /dev/wskbd1 keyboard1 will show up when doing a -a. wsconsctl keyboard1 will now show you all variables for keyboard1. feedback and ok miod@. -moj
* A long time ago when wsconsctl was written it expected that ksym was uniq.maja2010-06-281-1/+4
| | | | | | | | | | | | | | | | | That isn't the case. eg thorn, Cyrillic_CHE, L2_tcedilla, L5_scedilla and L7_zcaron has the same (0xfe). So you have a 20% chance to get the right output from wsconsctl. Use the ksym name to decide which ksyms isn't Latin-1. Store that information in the ksym tables. The use the keyboard encoding to make an educated guess of which character to return. Let say your encoding is pl. You have Latin-2 characters in the map. Then check first for Latin-2 characters if none found try Latin-1. ok miod@ -moj
* for rw query and print value that has actually been set in themartynas2009-07-151-49/+19
| | | | | | | similar way that mixerctl does. so that info for setting things like brightness makes sense (since we scale, like, 8 values to per-cent). also, it consistifies get/put, shrinks code since we don't need to do that in every single 'driver'. ok miod@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* don't print out the complete keyboard map when changed; ok miod@markus2003-03-071-5/+1
|
* ansideraadt2002-12-111-20/+29
|
* - repair usage() outputmiod2001-10-241-39/+53
| | | | | | | | | | | - when changing display.foo settings, print "display.foo -> bar" like done for mouse.* and keyboard.* - use warn() over err() whenever possible and appropriate code path to display as much as useful information as possible even if one ioctl fails. This is especially useful to get the display.* settings via wsconsctl -a if your mouse can't be probed, like on the iBook. ok mcikye@
* make it more sysctl-like, ommit -kmd switches.mickey2001-06-301-46/+46
| | | | | no backwards compatibility keeped. add ability to change screens from cmd line.
* wscons control tool; initial import from newtbsd treemickey2000-07-011-0/+220