aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/kbdcontrol
Commit message (Collapse)AuthorAgeFilesLines
* Stop linking to libl by specifying we do not need yywrapBaptiste Daroussin2019-09-102-2/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=352123
* kbdcontrol -h prints two error messages.Warner Losh2019-06-241-1/+4
| | | | | | | | We loop through getopt(3) twice. Once for -P args and once for the rest. Catch '?' and print usage when that happens. Notes: svn path=/head/; revision=349346
* Silence Clang Scan warning about use of unitialized variable.Stefan Eßer2019-01-231-2/+4
| | | | | | | | | | | | | | | | | | | | | While the warning is a false positive, it is possible to clarify the code by always initializing the variable. This does also allow to make the sending of the "beep" control sequence depend on the validity of its parameters. I have left the redundant assignment of 0 to the now initialized variables in place since this makes the code simpler to understand and does not add any run-time overhead (the compiler completely removes the "else if" test and the assignments). There was an embedded literal escape character in a string, which messes up diplaying the source code on a terminal that interprets ANSI sequences. The literal escape has been replaced by \e (non-standard, but supported by all relevant compilers, and already used in other source files in base). MFC after: 2 weeks Notes: svn path=/head/; revision=343339
* various: general adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-273-0/+6
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. No functional change intended. Notes: svn path=/head/; revision=326276
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* kbdcontrol: add -P path option to add keymap search pathsEd Maste2016-03-162-22/+72
| | | | | | | | | | PR: 193865 Reviewed by: cem Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5645 Notes: svn path=/head/; revision=296926
* DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery2016-02-241-2/+0
| | | | | | | | | | | These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
* kbdmap.5: Use current names for ASCII control codes lf, ff, usEd Maste2016-01-021-4/+10
| | | | | | | | | | | Refer to the old names nl, np, ns as historical aliases. PR: 205776, 205778 MFC After: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=293055
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+21
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-272-3/+2
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-193-5/+23
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ Merge head from 7/28Simon J. Gerraty2014-08-193-3/+23
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | | Merge from headSimon J. Gerraty2013-09-051-2/+3
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+2
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | mdoc: remove EOL whitespace.Joel Dahl2014-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=276360
* | | | | Convert usr.sbin to LIBADDBaptiste Daroussin2014-11-251-2/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275054
* | | | Update man-pages to correctly refer to changed pathes and naming conventionsStefan Eßer2014-08-262-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for systems with vt(4) consoles. MFC after: 3 days Notes: svn path=/head/; revision=270653
* | | | Remove band.aid that made kbdcontrol lookup keymap files in the sysconsStefan Eßer2014-08-261-1/+1
| |_|/ |/| | | | | | | | | | | | | | | | | | | | path even under vt, which is no longer useful, since the syscons keymap files have been converted and committed for use by vt. Notes: svn path=/head/; revision=270652
* | | The previous commit (r269119) introduced a regression: It removed theStefan Eßer2014-07-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ability to specify the the full path name of the keymap file. Instead leave the original search order intact, but insert the path for newcons-specific fonts (if run on a system using newcons): - KEYMAP_PATH in environment - full path name - /usr/share/vt/keymaps (only if newcons is in use!) - /usr/share/syscons/keymaps (also as fall-back for newcons) MFC after: 1 week Notes: svn path=/head/; revision=269120
* | | Fix obvious off by one error: prefix[1] should be set to the path of theStefan Eßer2014-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | newcons specific keymap files, not prefix[2]. The result of this bug was that kbdcontrol ignored the files in the syscons keymap directory, which apparently still work under newcons, for most locales. MFC after: 1 week Notes: svn path=/head/; revision=269119
* | | Fix vt(4) detection in kbdcontrol and vidcontrolEd Maste2014-07-021-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As sc(4) and vt(4) coexist and are both enabled in GENERIC, the existence of a vt(4) sysctl is not sufficient to determine that vt(4) is in use. Reported by: Trond Endrestøl Notes: svn path=/head/; revision=268175
* | | use .Mt to mark up email addresses consistently (part2)Baptiste Daroussin2014-06-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de> Notes: svn path=/head/; revision=267668
* | | Enable kbdcontrol(1) to use maps from vt(4) keymaps dir /usr/share/vt/keymapsAleksandr Rybalko2014-05-292-1/+20
| |/ |/| | | | | | | | | | | | | | | | | if vt(4) is present. MFC after: 7 days Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=266839
* | Improve compatibility with recent flex from flex.sourceforge.net.Jung-uk Kim2013-05-031-2/+3
|/ | | | Notes: svn path=/head/; revision=250227
* Reencode files to UTF-8. Drop CP1252 em-dash.Ulrich Spörlein2011-12-303-3/+3
| | | | Notes: svn path=/head/; revision=228976
* Add missing static and const keywords to kbdcontrol.Ed Schouten2011-12-121-61/+62
| | | | | | | | | None of the symbols provided by kbdcontrol.c are used by other source files of this binary. Slightly reduce the binary size and make much more symbols read-only by adding proper static and const keywords. Notes: svn path=/head/; revision=228437
* Don't generate input() since it's not used.Rebecca Cran2010-11-221-0/+1
| | | | Notes: svn path=/head/; revision=215676
* Fix some typos: flush vs. flash, and some others.Oliver Fromme2010-08-111-3/+3
| | | | | | | | Approved by: des (mentor, implicit) MFC after: 1 week Notes: svn path=/head/; revision=211172
* ANSIfy some more tools in usr.sbin/.Ed Schouten2010-01-021-1/+1
| | | | | | | | Most of these tools build with WARNS=6, except for their use of K&R function declarations. Notes: svn path=/head/; revision=201387
* Make the keyboard layer Unicode aware.Ed Schouten2009-09-192-5/+5
| | | | | | | | | | | | | | | Just take keyent_t to use an u_int to store the Unicode codepoints. Unfortunately the keymap is now too big to be loaded using an ioctl argument, so change the ioctl to pick a pointer. This change breaks kbdcontrol ABI. It doesn't break X11, because X11 doesn't do anything with syscons keymaps. It just switches the device out of K_XLATE. Obtained from: //depot/user/ed/newcons/... Notes: svn path=/head/; revision=197330
* Unhardcode 0x100 inside kbdcontrol.Ed Schouten2009-08-241-71/+73
| | | | | | | | | | | | | In preparation for Unicode support for the keyboard layer, we'd better get rid of all the hardcoded 0x100/0xff constants in kbdcontrol. Instead, add a flag called SPECIAL stored in the top bit of the integer. Adding Unicode support is very simple now; just change u_char map[] to u_int map[] in keyent_t, change the bounds checking in kbdcontrol to 0x1FFFFF and modify the ioctls to allow loading these new keymaps. Notes: svn path=/head/; revision=196500
* Some clarifications to make keyboard configuration under syscons.Tom Rhodes2008-01-292-3/+14
| | | | | | | | | PR: 89325 Submitted by: Oliver Fromme <olli@secnetix.de> Reviewed by: emax Notes: svn path=/head/; revision=175799
* Grammar fix from Ceri.Ruslan Ermilov2006-11-161-1/+1
| | | | Notes: svn path=/head/; revision=164336
* Document that visual bell is the global setting, whileRuslan Ermilov2006-11-161-1/+5
| | | | | | | other bell types can be set individually for each vty. Notes: svn path=/head/; revision=164334
* Replace magic numbers for console bell types with defines.Ruslan Ermilov2006-11-161-3/+3
| | | | Notes: svn path=/head/; revision=164333
* Markup fixes.Ruslan Ermilov2006-09-291-11/+8
| | | | Notes: svn path=/head/; revision=162806
* Make op parameter to mux_keyboard() u_int instead of int.Maksim Yevmenkin2006-09-151-2/+2
| | | | | | | | | | | | This should fix sparc64 messages like Sep 15 11:17:39 peahi kernel: WARNING pid 5477 (kbdcontrol): ioctl sign-extension ioctl ffffffff80244b45 PR: sparc64/96798 MFC after: 1 week Notes: svn path=/head/; revision=162327
* Reveal sacred spells necessary for putting kbdmux(4) to real use.Maxim Sobolev2005-12-291-0/+15
| | | | | | | Hopefully gods of RTFS and RTFCL will not go after me. Notes: svn path=/head/; revision=153851
* - Fix spelling of 'multiplexer'Markus Brueffer2005-07-211-6/+6
| | | | | | | | | | - Grammar fixes Approved by: simon MFC after: 3 days Notes: svn path=/head/; revision=148270
* kbdmux(4) keyboard multiplexer integrationMaksim Yevmenkin2005-07-142-2/+92
| | | | | | | | | | | | | | | | | | | | | | | o Slightly change KBADDKBD and KBRELKBD ioctl() interface. Instead of passing keyboard index pass keyboard_info_t structure with populated 'kb_unit' and 'kb_name' fields. Keyboard index is not very user-friendly and is not very easy to obtain. Keyboard driver name and unit, on the other hand, is much more user friendly and known almost all the time; o Move definition of keyboard_info_t structure up; o Teach kbdcontrol(1) how to attach/detach keyboards to/from the keyboard multiplexor; o Update kbdcontrol(1) man page and document new functionality. To attach/detach keyboard to/from keyboard multiplexor one needs to use keyboard device name (i.e. ukbd0). MFC after: 1 week Notes: svn path=/head/; revision=148017
* Sort sections.Ruslan Ermilov2005-01-181-2/+2
| | | | Notes: svn path=/head/; revision=140442
* Change the USB keyboard example to use /dev/ukbd0 instead of /dev/kbd1.Brooks Davis2005-01-081-2/+2
| | | | | | | | | This example caused me to incorrectly believe that you must use the generic device nodes when you can in fact use either. It's often better to use the driver specific node. Notes: svn path=/head/; revision=139898
* mdoc(7) janitor:Simon L. B. Nielsen2004-08-211-1/+2
| | | | | | | | | - Fix hard sentence breaks. MFC after: 3 days Notes: svn path=/head/; revision=134117
* fix bug which prevented programming function keys that were exactly 16John-Mark Gurney2004-08-091-1/+1
| | | | | | | | | | | characters long.. strcpy was coping over the length... PR: 52960 Submitted by: Dmitry Sivachenko MFC after: 1 week Notes: svn path=/head/; revision=133353
* Document machdep.enable_panic_key.Scott Long2004-08-021-1/+5
| | | | | | | Submitted by: Craig Rodrigues Notes: svn path=/head/; revision=132993