summaryrefslogtreecommitdiff
path: root/sys/dev/wscons
AgeCommit message (Collapse)Author
2008-10-06Add missing checks for sc_focus being NULL. Found the hard way byMiod Vallat
Jesus Sanchez.
2008-09-10Convert timeout_add() calls using multiples of hz to timeout_add_sec()Bret Lambert
Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions. ok art@, krw@
2008-08-24Define a proper wsdisplay type for legss(4).Miod Vallat
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-07Since wsmux is currently designed to act as a N inputs : 1 output device,Miod Vallat
be more coherent when handling the attachment of output devices (displays): - on attach, only claim the mux output if it has none already; - on detach, only force detachment from the input devices from this display if we are the mux output.
2008-06-07Do not stupidly dereference NULL in wsmux_set_display() is invoked with NULLMiod Vallat
as the second parameter.
2008-01-23Cleanup cn_pri. Change constants to more meaningful names, rather thanJoel Sing
the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
2007-11-27Remove whitespace at EOL, KNF, ansify. Move jump scroll code to a separateMiod Vallat
routine. No functional change (har, har)
2007-11-27Add display type for SGI GBE.Joel Sing
ok miod@
2007-11-26Constify the output of the emulops translate() function, as well as theMiod Vallat
various tables they use.
2007-11-25Ask the emulation code to hide the cursor when leaving emulation mode. ThisMiod Vallat
way we do not get a phantom cursor image when X exits.
2007-11-24typoMiod Vallat
2007-09-17Only the most obvious bzero() -> M_ZERO changes. No cast changes, noKenneth R Westerback
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
2007-09-11KNFGilles Chehade
prompted and "much better" by marco@, ok pyr@
2007-09-10more MALLOC/FREE -> malloc/free and M_ZERO changesGilles Chehade
ok pyr@
2007-09-01- Add bthidev(4), from NetBSD.Xavier Santolaria
- Make btms(4) and btkbd(4) compile. - Removed remaining proplib NetBSD'sim Prodded a while ago by gwk@. Eyeballed by miod@.
2007-07-25Back out the tracking of procs in struct selinfo. There's one seriousArtur Grabowski
bug in the code, but as soon as I try to fix it, it seems to trigger some other bugs. Instead of trying to figure out what's going on while everyone suffers, it's better to back out and figure out the bugs outside the tree.
2007-06-02little fixes to get hotkeys working again. from alexey vatchenkoTed Unangst
2007-05-31switch wskbd hotkeys over to workq. this eliminates quite a bit of code,Ted Unangst
so remove the option too. if you have audio and wskbd, you have hotkeys. ok dlg
2007-05-14wsmouse.h is needed for the NWSMOUSE test to actually workTed Unangst
found by and ok art
2007-05-08add swapxy, resx and resy to struct wsmouse_calibcoords,Robert Nagy
so we can store these values here; ok miod@
2007-04-10Add support for a fourth axis on wsmouse devices, e.g. on the Apple MightMiod Vallat
Mouse. Currently limited to USB mice. Adapted from a diff from Gareth <garf@loveandnature.co.za> on tech@
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-03-25POLLERR is the correct return code for poll errorsTed Unangst
ok art deraadt miod
2007-03-24Kill the horrible hack of storing the pid in struct selinfo.Artur Grabowski
Instead, keep the proc pointer in it and put the selinfo on a list in struct proc in selrecord. Then clean up the list when leaving sys_select and sys_poll. miod@ ok, testing by many, including Bobs spamd boxes.
2007-03-07For unsupported (yet) Expert3D style frame buffers, attach pcons and attachMiod Vallat
a really dumb wsdisplay to pcons, so that wskbd/wsmouse input drivers can be used for input, and prom for output. This is a band-aid for the release, so that people with such frame buffers do not need to unplug them or switch to serial console to install OpenBSD. Probably not the best way to do this, but this one has a minimal footprint and no tentacles in wscons. ok deraadt@
2007-02-14FALLTHRU -> FALLTHROUGH for consistency.Jonathan Gray
Suggested by miod@
2007-02-14Consistently spell FALLTHROUGH to appease lint.Jonathan Gray
ok kettenis@ cloder@ tom@ henning@
2007-01-07Some dynamically allocated elements are not considered of vital importanceMiod Vallat
for the vt100 emulation to work well enough for most cases (i.e. alternate character set tables, non-default tab settings, etc). However, code did not always check if these elements had been successfully allocated before trying to use them, or worse, would explicitely panic in DIAGNOSTIC kernels. Change this to work in a degraded mode (by ignoring related escape sequences) instead.
2007-01-07Change allocations to M_NOWAIT in attach methods, and return NULL if they fail.Miod Vallat
2007-01-07In wsscreen_attach(), allow wsemul->attach to fail (returning NULL) if theMiod Vallat
screen is not the console.
2006-12-17More leftovers from rcons.Miod Vallat
2006-12-17When processing a compose sequence of a dead accent and the spacebar, putMiod Vallat
the ``mundane'' accent: apostrophe instead of acute, and comma instead of cedilla. This matches what existing keyboard layouts with dead keys do. From Maurice Janssen via otto@
2006-12-09Do not make sun terminal emulation selected by the wsemul_sun frame bufferMiod Vallat
attribute anymore; remove it and use option WSEMUL_SUN instead, which gets added to all sparc* kernels. While there, do not compile vt100 emulation on sparc* kernels, this saves 16+ KB of text. ok deraadt@
2006-12-02Use a better strategy to make the mouse pointer visible in inverse_char();Miod Vallat
also check the return value of alloc_attr() for failure. No functional change.
2006-12-02Fix ri_devcmap[] to allow WSCOL_BLACK and WSCOL_WHITE to not have to beMiod Vallat
different for sparc{,64} systems.
2006-11-29No need to include pcdisplay.h here anymore.Miod Vallat
2006-11-29Change the getchar wsdisplay_accessops function to not return aMiod Vallat
display-dependent value, but instead fill a structure with the chaarcter and a valid attribute, suitable for use with unpack_attr. Adapt the wsmoused code to these changes, and remove all knowledge of the text-mode style pc video attributes in it. This will eventually allow wsmoused to be used on non-pcdisplay devices.
2006-11-29Add an unpack_attr function to struct wsdisplay_emulops, to match theMiod Vallat
existing alloc_attr function. This allows rasops_unpack_attr to be kept private to rasops, yet available to the screen drivers.
2006-11-29Add a new member to struct wsemuldisplaydev_attach_args, for a frame bufferMiod Vallat
driver to be able to tell how many wscons screens to attach to it, instead of WSDISPLAY_DEFAULTSCREENS which is a global setting.
2006-11-27commit vesabios for matthieu@Gordon Willem Klok
ok deraadt, "slap it in" miod@
2006-11-01poll errors should be POLLERR, not some random E valueTed Unangst
from alexandre ratchov. ok claudio
2006-10-19Fix hopefully the last wscons jump scrolling glitch, which can occurDimitry Andric
in case autowrapping is on, and control characters other than BS, CR, HT are encountered. Righto! miod@, also verified by Paul Stoeber.
2006-10-16Fix some more "is is"s. ok otto@.Tom Cosgrove
2006-10-09Fix jump scroll glitch, reported by dim@ and Paul Stoeber.Miod Vallat
2006-08-17Jump scroll support for vt100 and sun wscons emulations, helps macppc andMiod Vallat
zaurus a lot, tested by many; ok deraadt@
2006-08-14Really do what I intended on SMALL_KERNEL configurations.Miod Vallat
2006-08-14Add an attribute to the keyboard devices which can produce the keys theMiod Vallat
wskbd hotkey thread knows about, and make this code conditional on this attribute. No functional change, simply smaller kernels on a few platforms.
2006-08-06Convert the Sony wsfonts to ISO-Latin1 encoding, and drop the Sony encodingMiod Vallat
conversion tables; from NetBSD.
2006-08-06Time for rcons code to retire.Miod Vallat