summaryrefslogtreecommitdiff
path: root/sys/dev/wscons/wskbd.c
AgeCommit message (Collapse)Author
2004-02-27kbd_reset can work on amd64 tooTheo de Raadt
2003-09-23Replace select backends with poll backends. selscan() and pollscan()Todd C. Miller
now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-12-23Repair minor indentation problem.Miod Vallat
2002-05-20Do not blindly call wsdisplay routines if no wsdisplay device is activeMiod Vallat
and the user presses a magic key. ok mickey@
2002-04-30cdev_decl is done in conf.h, do not dupe hereMichael Shalayeff
2002-04-05protect another use of wskbd_repeat with #if NWSDISPLAY > 0Jason Wright
2002-03-30fix two evil bugs:Michael Shalayeff
panic on absent wsdiplay on scrollback; missing breaks.
2002-03-14First round of __P removal in sysTodd C. Miller
2001-10-30do not allow setting autorepeat delays causing zero timeouts later.Michael Shalayeff
pointed out for the case of del*=0 in pr@2156 by Juan Vera <juan@coredump.com.ar>.
2001-10-25If the console keyboard goes away, reinit wskbd_console_device.Dale Rahn
Will allow future console keyboard attaches to occur.
2001-09-30add mode_lock for mode_shift as the caps_lock is to shift; from Igor Grabin ↵Michael Shalayeff
<violent@death.kiev.ua>
2001-09-26Connect USB keyboards to the display after attaching, no longer requiringjoshua stein
'wsconscfg -k' to be run. Thanks to James Matthews for the extra keyboard. aaron@ ok
2001-09-16Add some missing lengths checks when passing data from userland toTodd C. Miller
kernel. From based on NetBSD patches.
2001-06-11good when it compilesMichael Shalayeff
2001-06-11follow x11 behaviour wrt caps^shift, even i like it this way, but deraadtifiedMichael Shalayeff
2001-06-09Set sc_dying in wskbd_detach, otherwise it's pointless.Aaron Campbell
2001-06-09Remove sc_ready from the softc, we can just test sc_events.io instead.Aaron Campbell
2001-06-09Allow wskbd_cngetc() to return any key pressed, not just ones in the ASCIIAaron Campbell
group; fixes PR/1787. This mimics the behavior of pccons and pcvt; mickey@ ok
2001-06-08and add a note on result value importanceMichael Shalayeff
2001-06-08invert caps w/ shifts, also cleanup the whole routine; pointed out by ↵Michael Shalayeff
pvalchev@; aaron@ ok
2001-05-08inplement screen burner in screenblank(1) style (no program though).Michael Shalayeff
disabled by default, also supports vsync blanking, disabled by default. aaron@ looked at it a while back and i fixed problems he had indicated.
2001-04-18Oops -- adjust the comment as well.Aaron Campbell
2001-04-18Set the default bell pitch to 400, like X.Aaron Campbell
2001-04-09Honor the db_console sysctl variable, like PCVT did.Aaron Campbell
2001-03-30Add a new wsmuxop, dissetdisplay, which wsmux uses to disocver whether a muxAaron Campbell
device is connected to a display or not. Use it in wsmux_detach_sc(). This fixes a problem I've been struggling with whereby the machine panics if I detach a USB keyboard before disconnecting it from wsdisplay.
2001-03-01Wrap KS_Cmd_KbdReset in #ifdef __i386__ for now; politely pointed to this byAaron Campbell
drahn@, snarked at by mickey@ ;)
2001-03-01Add CTRL-ALT-DEL machine reset support, like PCVT had, enabled by theAaron Campbell
machdep.kbdreset sysctl as configured in /etc/sysctl.conf.
2001-02-11Allow up to 12 virtual terminals (CTRL-ALT-F1 through CTRL-ALT-F12). OnlyAaron Campbell
6 are enabled by default. After these changes, to enable more you must change the "option WSDISPLAY_DEFAULTSCREENS" in the kernel config file and edit /etc/ttys to switch the new ones from 'off' to 'on'.
2001-02-10sync w/ netbsd; aaron@ okMichael Shalayeff
2001-02-08Cause keypresses to reset the screen in case we are in scrollback (previouslyAaron Campbell
the screen was only restored if a new character was actually displayed on the screen); jcs@rt.fm. This brings us closer to the behavior of PCVT. Also, while I'm here, add some #ifdef so wskbd does not depend on wsdisplay (pointed out to me by fgsch@).
2001-01-30- Add some checks for (sc != NULL). Missed by me previously. Fixes boot -c.Aaron Campbell
- Remove static.
2001-01-30WSMOUSEDEVCF_MUX_DEFAULT -> WSKBDDEVCF_MUX_DEFAULT, although this didn'tAaron Campbell
matter much since they are the same value, but confusing nonetheless.
2000-11-24Better key repeat logic. When we're in repeat mode, with the exception ofAaron Campbell
modifier keys (SHIFT, CTRL, ALT, etc.), and a key "up" event is received, only delete the key repeat timeout if the key that generated the "up" event is the key currently being repeated. When a key "down" event is received, the opposite -- only delete the key repeat if the key that generated the "down" event is _not_ the key currently being repeated. Playing here is a bit dangerous since we are constraining the conditions in which a timeout(9) is deleted (we don't want to mistakenly get stuck in a non-legitamite key repeat). Using timeout(9) for this is kind of gross. I guess it is done here to avoid key repeat code in all of the actual hardware keyboard drivers. There is still a bug here. If you have a key held down and detach your keyboard (by either unplugging it or doing a KVM switch), the timeout is not deleted and the key continues to repeat until it gets the keyboard back and receives an interrupt. Perhaps we should not be ignoring typematic keys after all?
2000-11-15Support console scrollback in wscons through a new "scrollback" accessop thatAaron Campbell
hooks into the lower-level display driver. The updated vga(4) driver I'm about to commit has support for this. This is a fairly unobtrusive way to implement scrollback while maintaining the abstraction of the wscons system.
2000-08-01update wscons, nothing serious, mostly api fixes for us; from netbsd through ↵Michael Shalayeff
aaron@
2000-05-16import newer wscons source from netbsd.Michael Shalayeff
art@ said it will make his life easier in alpha rhands@ said it is not used in powerpc for now bjc@ said that it would make vax port easier mickey@ said other platforms can use it, and it's faster