summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons
Commit message (Collapse)AuthorAgeFilesLines
* Remote newly unused variable to unbreak LINT.brooks2002-03-251-1/+1
| | | | Pointy hat to: amorita
* Add new graphical screen saver (dragon_saver).amorita2002-03-235-90/+490
| | | | Add support for NEC PC-9821 PEGC screen (fire/logo/rain/warp_saver).
* Remove __P.alfred2002-03-201-1/+1
|
* Extend CONS_GETINFO ioctl to provide information about size of the currentlysobomax2002-03-161-0/+1
| | | | | | displayed font. MFC after: 2 weeks
* Fixed compilation warnings.ru2002-03-061-0/+2
|
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredjhb2002-02-271-1/+1
| | | | reference.
* Lock struct pgrp, session and sigio.tanimura2002-02-231-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | New locks are: - pgrpsess_lock which locks the whole pgrps and sessions, - pg_mtx which protects the pgrp members, and - s_mtx which protects the session members. Please refer to sys/proc.h for the coverage of these locks. Changes on the pgrp/session interface: - pgfind() needs the pgrpsess_lock held. - The caller of enterpgrp() is responsible to allocate a new pgrp and session. - Call enterthispgrp() in order to enter an existing pgrp. - pgsignal() requires a pgrp lock held. Reviewed by: jhb, alfred Tested on: cvsup.jp.FreeBSD.org (which is a quad-CPU machine running -current)
* Spell #if 0 correctlygallatin2002-02-141-2/+2
|
* In the word selection mode don't append newline if the word ends at thesobomax2002-01-051-0/+4
| | | | screen boundary.
* Fix POLA - when selecting line into syscons' cut'n'paste buffer (doublesobomax2001-11-251-0/+4
| | | | | | click) do not include newline into the buffer. This is exacly how things worked before my recent changes to the cut'n'paste code and how they work in 4-STABLE.
* More drive-by stylification, and some clarificationsdes2001-11-061-10/+16
|
* More drive-by stylificationdes2001-11-061-4/+4
|
* Drive-by stylification + reintroduce set_border().des2001-11-063-212/+219
|
* Some fix for the recent apm module changes.iwasaki2001-11-011-11/+3
| | | | | | | | | | | | | | - Now that apm loadable module can inform its existence to other kernel components (e.g. i386/isa/clock.c:startrtclock()'s TCS hack). - Exchange priority of SI_SUB_CPU and SI_SUB_KLD for above purpose. - Add simple arbitration mechanism for APM vs. ACPI. This prevents the kernel enables both of them. - Remove obsolete `#ifdef DEV_APM' related code. - Add abstracted interface for Powermanagement operations. Public apm(4) functions, such as apm_suspend(), should be replaced new interfaces. Currently only power_pm_suspend (successor of apm_suspend) is implemented. Reviewed by: peter, arch@ and audit@
* Add the TGA video driver. This is a great accomplishtment and will helpobrien2001-11-011-716/+168
| | | | | | | | us a lot on older Alphas. Andrew Gallatin, Thomas V. Crimi, and Peter Jeremy contributed to this work along with the submitter. Submitted by: Andrew M. Miklic <miklic@home.com>
* cn_tab no longer exists, use cnadd() to add a console device. Note thatjlemon2001-10-241-1/+1
| | | | this may result in duplicate console output in some cases.
* Enable console. There are far too many 'ifdef __i386__' in this file.dfr2001-10-061-7/+7
|
* o Modify syscons ioctl securelevel checks to use securelevel_gt() (oh look,rwatson2001-09-261-2/+3
| | | | | | yet another API to do direct hardware I/O access.) Obtained from: TrustedBSD Project
* Introduce new syscons(4) kernel options:sobomax2001-09-211-100/+91
| | | | | | | | | | | | | - SC_CUT_SPACES2TABS - when copying text into the cut buffer convert leading spaces into the tabs; - SC_CUT_SEPCHARS="XYZ" - treat supplied characters as possible words separators when the driver searches for words boundaries when doing cut operation. Also unify cut code a bit to decrease amount of duplicated code. This fixes line cut mode, so that it is no longer pads line with useless spaces. Approved by: ru
* KSE Milestone 2julian2001-09-128-35/+35
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Fix some malformed macro concatenation that gcc-3 has objections about.peter2001-09-101-4/+4
|
* repo-copy the source files from modules/syscons to the normal treepeter2001-08-092-5/+13
| | | | and connect them to the normal build infrastructure.
* Don't call wakeup() while we are in DDB. The patch wasyokota2001-08-071-3/+16
| | | | | | developed by bde. I added the same check in one more place where wakeup() might be called during the DDB session. Submitted by: bde
* Use #ifdef DEV_SPLASH (from opt_splash.h) rather thanyokota2001-08-021-28/+28
| | | | | #if NSPLASH > 0 (from splash.h) to test the presence of the splash driver.
* Add FBIO_BLANK ioctl support. Return ENODEV for yet-to-be-yokota2001-08-021-0/+5
| | | | supported ioctls for now.
* Refine cursor type/shape control escape sequences andyokota2001-08-025-111/+215
| | | | | | | ioctls. We can now add ve, vi and vs capabilities to cons25 in termcap. Discussed with and tested by: ache
* Fix grammar nit.dd2001-08-011-1/+1
|
* - Fix "off by one" error in VT_WAITACTIVATE. Correctly acceptyokota2001-07-221-5/+5
| | | | | | | | 0 as meaning the requesting vty. - Accept 0 as the requesting vty in VT_ACTIVATE as in VT_WAITACTIVE. PR: 24423 MFC after: 10 days
* Fix off by one error for ESC[1J.yokota2001-07-201-1/+1
| | | | | PR: kern/18381 MFC after: 10 days
* Define a couple of subroutines to replace duplicated common code. Youyokota2001-07-201-65/+59
| | | | shoulnd't see any functional difference.
* - Define a convenience macro ISTTYOPEN().yokota2001-07-121-21/+28
| | | | | | | - Slightly refine screen saver logic. No functional change. MFC after: 2 weeks
* Fix dependencies between kernel options:yokota2001-07-105-17/+26
| | | | | | | | | | - When both SC_PIXEL_MODE and SC_NO_FONT_LOADING are defined, quietly drop SC_NO_FONT_LOADING, because the pixel(raster) console requires font. - When SC_NO_FONT_LOADING is defined, force SC_ALT_MOUSE_IMAGE. Without font, the arrow-shaped mouse cursor cannot be drawn. - Fiddle and simplify some internal macros. MFC after: 2 weeks
* Call ttymalloc() when sysmouse is opened, rather thanyokota2001-07-061-1/+1
| | | | | when the driver is attached. MFC after: 2 weeks
* Remove the resume method. It is not necessary any more, becauseyokota2001-06-302-13/+0
| | | | | keyboard drivers have it now... MFC after: 4 weeks
* If we are in DDB, don't switch to a vty in the VT_PROCESS mode.yokota2001-06-301-0/+6
| | | | MFC after: 2 weeks
* Add a new MI pointer to the process' trapframe p_frame instead of usingjhb2001-06-291-2/+2
| | | | | | various differently named pointers buried under p_md. Reviewed by: jake (in principle)
* Don't free buffers we didn't allocate.yokota2001-06-292-3/+6
| | | | MFC after: 2 weeks
* Quit the ioctl MOUSE_GETINFO as soon as we have gathered necessaryyokota2001-06-291-1/+1
| | | | | information. There is no need to stick around any longer. MFC after: 2 weeks
* Test "sc->kbd != NULL" rather than "sc != NULL" beforeyokota2001-06-291-1/+1
| | | | | accessing the keyboard in scopen(). MFC after: 2 weeks
* With this commit, I hereby pronounce gensetdefs past its use-by date.peter2001-06-135-19/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the a.out emulation of 'struct linker_set' with something a little more flexible. <sys/linker_set.h> now provides macros for accessing elements and completely hides the implementation. The linker_set.h macros have been on the back burner in various forms since 1998 and has ideas and code from Mike Smith (SET_FOREACH()), John Polstra (ELF clue) and myself (cleaned up API and the conversion of the rest of the kernel to use it). The macros declare a strongly typed set. They return elements with the type that you declare the set with, rather than a generic void *. For ELF, we use the magic ld symbols (__start_<setname> and __stop_<setname>). Thanks to Richard Henderson <rth@redhat.com> for the trick about how to force ld to provide them for kld's. For a.out, we use the old linker_set struct. NOTE: the item lists are no longer null terminated. This is why the code impact is high in certain areas. The runtime linker has a new method to find the linker set boundaries depending on which backend format is in use. linker sets are still module/kld unfriendly and should never be used for anything that may be modular one day. Reviewed by: eivind
* Make the beep duration independent of HZ.phk2001-05-282-2/+3
| | | | | | PR: 25201 Submitted by: Akio Morita amorita@meadow.scphys.kyoto-u.ac.jp MFC after: 1 week
* In the VIRTUAL_TTY macro, add a check to make sure that the result ofdd2001-05-271-1/+2
| | | | | | | | | | | SC_DEV isn't NULL; if it is, evaluate to NULL and don't dereference NULL. Callers of VIRTUAL_TTY must already check for the result being NULL since si_tty can be NULL, so this should be safe. This fixes a panic when trying to switch to a different vty in an environment such as userconfig (-c option to the kernel). PR: 26508
* Add a CONS_CLRHIST ioctl which instructs syscons to clear the historydd2001-05-271-0/+6
| | | | | | | (scroll-back) buffer. PR: 27616 Reviewed by: ru
* Add a new ioctl to syscons, CONS_SCRSHOT. Given a userland buffer, itnik2001-05-181-0/+18
| | | | | | | | | | | copies out the current contents of the video buffer for a syscons terminal, providing a snapshot of the text and attributes. Based heavily on work originally submitted by Joel Holveck <joelh@gnu.org> for 2.2.x almost 30 months ago, which I cleaned up a little, and forward ported to -current. See also the usr.bin/scrshot utility.
* Undo part of the tangle of having sys/lock.h and sys/mutex.h included inmarkm2001-05-012-14/+18
| | | | | | | | | | | other "system" header files. Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files. Sort sys/*.h includes where possible in affected files. OK'ed by: bde (with reservations)
* Change the pfind() and zpfind() functions to lock the process that theyjhb2001-04-242-11/+28
| | | | | | find before releasing the allproc lock and returning. Reviewed by: -smp, dfr, jake
* Upper limit of mousechar start is UCHAR_MAX - 3, not UCHAR_MAX - 4ache2001-04-211-2/+4
| | | | | | | Restore original characters when mousechar start changes, not always 0-3 PR: 24437 Submitted by: Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
* Send the remains (such as I have located) of "block major numbers" tophk2001-03-262-2/+0
| | | | the bit-bucket.
* Multiply empty lines pasted as single line, fix itache2001-03-131-2/+2
|
* Don't require that mouse cursor must be visible before mouse paste.ache2001-03-122-15/+7
| | | | | | Paste always happens to current _text_ cursor position independently of mouse cursor position in any case and old variant force user to press mouse paste button _two_ times if mouse cursor is invisible.
OpenPOWER on IntegriCloud