aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/kbdcontrol/kbdcontrol.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC: Enable KEYMAP_PATH environment variable to tweak keymap path.Makoto Matsushita2004-08-031-8/+13
| | | | | | | | | | | | | | | | | | | | This commit imports following commit to RELENG_4: src/usr.sbin/kbdcontrol/kbdcontrol.1 rev 1.27 src/usr.sbin/kbdcontrol/kbdcontrol.c rev 1.34, 1.35 If my build sandbox works as expected, Jul/17/2004 or later RELENG_4 release build is broken iff old build environment is used. This is because that even if a new keymap hits the tree, release build doesn't see src/ directory but /usr/share/syscons/keymaps. About three years before, 5-current had a fix for that by sobomax, but it was not MFCed yet. Let me give a chance to fix for RELENG_4. Tested on: tora.jp.FreeBSD.org (aka snapshots.jp.FreeBSD.org RELENG_4 buildbox) Notes: svn path=/stable/4/; revision=133076
* MFC: Support mouse-buffer paste key definition.Murray Stokely2003-07-151-0/+8
| | | | Notes: svn path=/stable/4/; revision=117619
* MFC:Maxim Sobolev2001-06-081-12/+13
| | | | | | | | - Sync error messages with usage(); - avoid gcc(1) warnings. Notes: svn path=/stable/4/; revision=77912
* MFC: Add the ability to define halt and powerdown keys for sysconf.David Malone2000-10-291-0/+16
| | | | Notes: svn path=/stable/4/; revision=67900
* Define some more function keys in the keymap: panic, lshifta, rshifta, etc.Kazutaka YOKOTA1999-12-101-0/+56
| | | | Notes: svn path=/head/; revision=54380
* Fix warning: return type of `main' is not `int'Peter Wemm1999-09-151-1/+1
| | | | Notes: svn path=/head/; revision=51287
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* - Add new argument `off' to the `-b' option. This will turn offKazutaka YOKOTA1999-07-221-1/+3
| | | | | | | | | | | the bell. - Document it in the man page. - Fix a couple of typo in the man page. Submitted by: cpiazza Notes: svn path=/head/; revision=48982
* Reflect recent changes in syscons.Kazutaka YOKOTA1999-06-221-1/+9
| | | | Notes: svn path=/head/; revision=48105
* Added backward compatibility to set key repeat rate.Kazutaka YOKOTA1999-05-091-7/+28
| | | | | | | Requested by: bde Notes: svn path=/head/; revision=46761
* Fix builds for the AXPGary Palmer1999-03-171-6/+1
| | | | | | | Submitted by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> Notes: svn path=/head/; revision=44827
* Keyboard driver update in preparation for the USB keyboard driver.Kazutaka 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. Notes: svn path=/head/; revision=44628
* Remove a workaround for the alpha port using an outdated version of syscons.Doug Rabson1999-01-231-6/+1
| | | | Notes: svn path=/head/; revision=43106
* Fix for compiling on alpha.Matt Jacob1999-01-121-1/+20
| | | | | | | Obtained from:yokota@zodiac.mech.utsunomiya-u.ac.jp Notes: svn path=/head/; revision=42606
* The first stage of console driver reorganization: activate newKazutaka YOKOTA1999-01-111-5/+109
| | | | | | | keyboard and video card drivers. Notes: svn path=/head/; revision=42505
* The fix in the previous commit was not sufficient; the upper 24 bitsKazutaka YOKOTA1998-09-101-14/+9
| | | | | | | | | of an int argument still contained garbage. Pointed out by: bde PR: bin/7799 Notes: svn path=/head/; revision=39047
* Fix uninitialized variable.Kazutaka YOKOTA1998-09-041-1/+2
| | | | | | | | PR: bin/7799 Submitted by: Sheldon Hearn (axl@iafrica.com) Notes: svn path=/head/; revision=38805
* The control code ^_ (0x1f) should really be called "us" rather than "ns".Kazutaka 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. Notes: svn path=/head/; revision=38139
* Added the `saver' key definition. The saver key will activate the screenKazutaka YOKOTA1998-08-031-1/+9
| | | | | | | saver if one is loaded. Notes: svn path=/head/; revision=38053
* - Set bell pitch in hertz and duration in msecs.Kazutaka 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) Notes: svn path=/head/; revision=38044
* Fix the search sequence for keymaps.Dag-Erling Smørgrav1998-05-051-3/+3
| | | | | | | | PR: bin/6522 Submitted by: Rudolf Cejka Notes: svn path=/head/; revision=35750
* Fix the output of `kbdcontrol -L _keymap_file_' which I broke in the lastKazutaka YOKOTA1998-01-121-11/+16
| | | | | | | | commit ;-< /usr/src/release/sysinstall/Makefile uses it to generate built-in keymap tables. Notes: svn path=/head/; revision=32486
* Added accent (dead) key support to syscons and kbdcontrol.Kazutaka YOKOTA1998-01-071-37/+342
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With a keymap with accent key definitions loaded to syscons, you press an accent key followed by a regular letter key to produce an accented letter. Press an accent key followed by the space bar to get the accent letter itself. Code is based on the ideas and work by jmrueda@diatel.upm.es and totii@est.is. PR: i386/4016 - Added keywords for accent (dead) keys: dgra, dacu, dcir, dtil... - Recognize accent map definitions. <accent_map_definition> ::= <accent_key_name> <accent_char> <accent_map> <accent_key_name> ::= dgra | dacu | dcir | dtil | dmac | dbre | ddot | duml | dsla | drin | dced | dapo | ddac | dogo | dcar <accent_map> ::= <map_entry> | <map_entry> <accent_map> <map_entry> ::= ( <regular_letter_char> <accented_char> ) - Use ioctls PIO_DEADKEYMAP and GIO_DEADKEYMAP to set and get the accent key map table in syscons. - Made the output for the -L option more intelligible and look like initializers in kbdtables.h. - Reorganized print functions in order to print the accent key map. Notes: svn path=/head/; revision=32316
* Use err(3). Typo fixes in man page.Philippe Charnier1997-09-191-47/+33
| | | | Notes: svn path=/head/; revision=29603
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22997
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Implement a -L option that dumps the compiled keymap (as C code) toJoerg Wunsch1996-11-091-6/+31
| | | | | | | stdout. The next commit to sysinstall will use this... Notes: svn path=/head/; revision=19569
* Merge RELENG_2_0_5 into HEADRodney W. Grimes1995-06-111-4/+5
| | | | Notes: svn path=/head/; revision=9202
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-23/+23
| | | | Notes: svn path=/head/; revision=8857
* Added h option for setting the historysize.Søren Schmidt1995-01-301-23/+25
| | | | | | | fixed problem with Both n&C flags. Notes: svn path=/head/; revision=6046
* Third round in syscons update.Søren Schmidt1995-01-281-18/+30
| | | | | | | | | | | | | | | | | Display update method changed, now allways write in memory buffer, then periodically update physical display. Speed improvements (now > 5 times faster than the old syscons). History now circular buffer, with changeable size. History scroll by up/down line, up/down page, home and end. Backtab proberly implemented. Now space for 96 function keys, 63 allocated standard, default now SCO/SYSV compat again as in the old days. New keyboard definition files ~share/syscons/keymaps/* Misc fixes for old "hacks" that broke SCO/SYSV compat. More that I forgot before writing this... Notes: svn path=/head/; revision=5994
* First round in syscons update. Several new features has been added:Søren Schmidt1995-01-121-23/+31
| | | | | | | | | | | | | | | | | No kernel config options anymore besides keyboard language layout. Virtual consoles are now dynamically allocated, no NCONS anymore. Software cursor blinking/nonblinking. Visual bell for laptops (don't beep at meetings :-). Cursor/bell default type setable via config "flags" instead of as defines. Cursor/bell type setable via ioctl's. New video modes 80x30 80x60 for some laptops, and those with multisync monitors. Scroll-lock history (length currently fixed at 100 lines). Lots of cleanups, some only commented out for now (will goaway soon). Support for new features in vidcontrol/kbdcontrol. Updated manpages. Notes: svn path=/head/; revision=5536
* Applied patch009. Also added appropriate #include <string.h> whichSteven Wallace1994-10-251-2/+3
| | | | | | | | | | would have detected that memset was not being passed a pointer in the first place. Submitted by: Gene Stark (?) - 1.1.5.1 patch009 Notes: svn path=/head/; revision=3864
* Added kbdcontrol util from 1.1.5.1+Søren Schmidt1994-08-171-0/+566
Reviewed by: Submitted by: Notes: svn path=/head/; revision=2088