summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kbdcontrol/kbdcontrol.c
Commit message (Collapse)AuthorAgeFilesLines
* kbdcontrol: add -P path option to add keymap search pathsemaste2016-03-161-22/+65
| | | | | | | PR: 193865 Reviewed by: cem Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5645
* Remove band.aid that made kbdcontrol lookup keymap files in the sysconsse2014-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.
* The previous commit (r269119) introduced a regression: It removed these2014-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
* Fix obvious off by one error: prefix[1] should be set to the path of these2014-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
* Fix vt(4) detection in kbdcontrol and vidcontrolemaste2014-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
* Enable kbdcontrol(1) to use maps from vt(4) keymaps dir /usr/share/vt/keymapsray2014-05-291-1/+16
| | | | | | | if vt(4) is present. MFC after: 7 days Sponsored by: The FreeBSD Foundation
* Reencode files to UTF-8. Drop CP1252 em-dash.uqs2011-12-301-1/+1
|
* Add missing static and const keywords to kbdcontrol.ed2011-12-121-63/+64
| | | | | | 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.
* ANSIfy some more tools in usr.sbin/.ed2010-01-021-1/+1
| | | | | Most of these tools build with WARNS=6, except for their use of K&R function declarations.
* Make the keyboard layer Unicode aware.ed2009-09-191-1/+1
| | | | | | | | | | | | 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/...
* Unhardcode 0x100 inside kbdcontrol.ed2009-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.
* Replace magic numbers for console bell types with defines.ru2006-11-161-3/+3
|
* Make op parameter to mux_keyboard() u_int instead of int.emax2006-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
* kbdmux(4) keyboard multiplexer integrationemax2005-07-141-2/+70
| | | | | | | | | | | | | | | | | | | | 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
* fix bug which prevented programming function keys that were exactly 16jmg2004-08-091-1/+1
| | | | | | | | characters long.. strcpy was coping over the length... PR: 52960 Submitted by: Dmitry Sivachenko MFC after: 1 week
* Use __FBSDID over rcsid[]. Protect copyright[] where needed.obrien2003-05-031-4/+2
|
* WARNS?=4 cleanup.alfred2002-07-111-17/+31
|
* de-__P()alfred2002-07-111-3/+3
|
* Fix typo in the BSD copyright: s/withough/without/schweikh2002-06-021-1/+1
| | | | | Spotted and suggested by: des MFC after: 3 weeks
* FreeBSD 4.1 bootstrapping aid (HALT and PDWN are not defined there).ru2002-02-081-2/+8
|
* Repeat after me: "when reporting `file not found', perform a little bit ofobrien2001-07-131-1/+1
| | | | useful HCI consideration and tell which file was being looked for".
* - Syncronizes command line syntax warnings with manpage (bin/27010);sobomax2001-05-291-9/+12
| | | | | | | | - silence gcc(1) warnings (sobomax). PR: 27010 Submitted by: Alex Kapranoff <alex@kapran.bitmcnit.bryansk.su>, sobomax MFC after: 10 days
* Move the scrollback controls from kbdcontrol to vidcontrol.des2001-05-281-72/+39
| | | | | | Also fix some style bugs in the code and poor language in the man pages. Reviewed by: sobomax
* Instead of defining CONS_CLRHIST if it isn't defined, simply disabledd2001-05-271-6/+6
| | | | | | | | the -c option [when CONS_CLRHIST isn't defined]. This is okay since the only time CONS_CLRHIST wouldn't be defined is when kbdcontrol is being built in bootstrap-tools, and -c isn't needed then. Submitted by: imp
* A la rev. 1.36, define CONS_CLRHIST here if it isn't already sincedd2001-05-271-2/+6
| | | | this is a build tool, so it has to build on 4.x with the old headers.
* Add a -c option which clears the history buffer using the newdd2001-05-271-2/+13
| | | | | | | CONS_CLRHIST ioctl. PR: 27616 Reviewed by: ru
* If PASTE isn't defined, define it as a transitional measure. Thisimp2001-05-151-6/+13
| | | | | | | allows me to complete make buildworld on my stable machine. Also change termination case to be clearer what is going on while searching for map files.
* Fix a possible segfault introduced in my previous commit.sobomax2001-05-141-2/+3
|
* Allow path where keyboard maps are looked for to be altered using environmentsobomax2001-05-121-8/+12
| | | | variable.
* Implement keyboard pasteache2001-03-111-0/+8
| | | | | PR: 25499 Submitted by: Gaspar Chilingarov <nm@web.am>
* Initiate deorbit burn sequence for <machine/console.h>.phk2000-10-081-1/+2
| | | | | | | | | Replace all in-tree uses with necessary subset of <sys/{fb,kb,cons}io.h>. This is also the appropriate fix for exo-tree sources. Put warnings in <machine/console.h> to discourage use. November 15th 2000 the warnings will be converted to errors. January 15th 2001 the <machine/console.h> files will be removed.
* Add the ability to define a "shutdown" and "shutdown and poweroff" keydwmalone2000-09-111-0/+16
| | | | | | | | to syscons. I have a man page to follow describing the format of the kbdmap file. PR: 19273 Reviewed by: sheldonh
* Define some more function keys in the keymap: panic, lshifta, rshifta, etc.yokota1999-12-101-0/+56
|
* Fix warning: return type of `main' is not `int'peter1999-09-151-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* - Add new argument `off' to the `-b' option. This will turn offyokota1999-07-221-1/+3
| | | | | | | | the bell. - Document it in the man page. - Fix a couple of typo in the man page. Submitted by: cpiazza
* Reflect recent changes in syscons.yokota1999-06-221-1/+9
|
* Added backward compatibility to set key repeat rate.yokota1999-05-091-7/+28
| | | | Requested by: bde
* Fix builds for the AXPgpalmer1999-03-171-6/+1
| | | | Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
* Keyboard driver update in preparation for the USB keyboard driver.yokota1999-03-101-33/+12
| | | | | | | | | | | | | | | | | | | | | | | - Refined internal interface in keyboard drivers so that: 1. the side effect of device probe is kept minimal, 2. polling mode function is added, 3. and new ioctl and configuration options are added (see below). - Added new ioctl: KDSETREPEAT Set keyboard typematic rate. There has existed an ioctl command, KDSETRAD, for the same purpose. However, KDSETRAD is dependent on the AT keyboard. KDSETREPEAT provides more generic interface. KDSETRAD will still be supported in the atkbd driver. - Added new configuration options: ATKBD_DFLT_KEYMAP Specify a keymap to be used as the default, built-in keymap. (There has been undocumented options, DKKEYMAP, UKKEYMAP, GRKEYMAP, SWKEYMAP, RUKEYMAP, ESKEYMAP, and ISKEYMAP to set the default keymap. These options are now gone for good. The new option is more general.) KBD_DISABLE_KEYMAP_LOADING Don't allow the user to change the keymap.
* Remove a workaround for the alpha port using an outdated version of syscons.dfr1999-01-231-6/+1
|
* Fix for compiling on alpha.mjacob1999-01-121-1/+20
| | | | Obtained from:yokota@zodiac.mech.utsunomiya-u.ac.jp
* The first stage of console driver reorganization: activate newyokota1999-01-111-5/+109
| | | | keyboard and video card drivers.
* The fix in the previous commit was not sufficient; the upper 24 bitsyokota1998-09-101-14/+9
| | | | | | of an int argument still contained garbage. Pointed out by: bde PR: bin/7799
* Fix uninitialized variable.yokota1998-09-041-1/+2
| | | | | PR: bin/7799 Submitted by: Sheldon Hearn (axl@iafrica.com)
* The control code ^_ (0x1f) should really be called "us" rather than "ns".yokota1998-08-061-2/+2
| | | | | In the mean time, accept both "us" and "ns" in the keymap file as ^_ for the compatibility with the existing keymap files.
* Added the `saver' key definition. The saver key will activate the screenyokota1998-08-031-1/+9
| | | | saver if one is loaded.
* - Set bell pitch in hertz and duration in msecs.yokota1998-08-031-5/+13
| | | | | | | The change corresponds to syscons.c 1.268. PR: bin/6037 Submitted by: Kouichi Hirabayashi (kh@eve.mogami-wire.co.jp)
* Fix the search sequence for keymaps.des1998-05-051-3/+3
| | | | | PR: bin/6522 Submitted by: Rudolf Cejka
* Fix the output of `kbdcontrol -L _keymap_file_' which I broke in the lastyokota1998-01-121-11/+16
| | | | | commit ;-< /usr/src/release/sysinstall/Makefile uses it to generate built-in keymap tables.
OpenPOWER on IntegriCloud