summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kbdcontrol/kbdcontrol.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Added accent (dead) key support to syscons and kbdcontrol.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.
* Use err(3). Typo fixes in man page.charnier1997-09-191-47/+33
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-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.
* Implement a -L option that dumps the compiled keymap (as C code) tojoerg1996-11-091-6/+31
| | | | stdout. The next commit to sysinstall will use this...
* Merge RELENG_2_0_5 into HEADrgrimes1995-06-111-4/+5
|
* Remove trailing whitespace.rgrimes1995-05-301-23/+23
|
* Added h option for setting the historysize.sos1995-01-301-23/+25
| | | | fixed problem with Both n&C flags.
* Third round in syscons update.sos1995-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...
* First round in syscons update. Several new features has been added:sos1995-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.
* Applied patch009. Also added appropriate #include <string.h> whichswallace1994-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
OpenPOWER on IntegriCloud