aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/4.1.0_cvscvs2svn2000-07-2613-13/+13
| | | | | | | 'RELENG_4_1_0_RELEASE'. This commit was manufactured to restore the state of the 4.1-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
* MFC: reset only bold on SGR 39Andrey A. Chernov2000-07-201-2/+2
| | | | Notes: svn path=/stable/4/; revision=63650
* MFC: shorten 49m attrs resetting exprAndrey A. Chernov2000-07-151-2/+1
| | | | Notes: svn path=/stable/4/; revision=63222
* MFC: reset attrs on 39/49m, unify commentsAndrey A. Chernov2000-07-151-16/+17
| | | | Notes: svn path=/stable/4/; revision=63220
* MFC: cosmetique, fix comments about 'ansi' colorsAndrey A. Chernov2000-06-061-7/+7
| | | | Notes: svn path=/stable/4/; revision=61312
* MFC: implement E[39m and E[49mAndrey A. Chernov2000-06-051-0/+10
| | | | Notes: svn path=/stable/4/; revision=61298
* MFC: last line TAB not cause scrollingAndrey A. Chernov2000-05-291-3/+8
| | | | Notes: svn path=/stable/4/; revision=61073
* MFC: Use a MI /dev/[u]random device.David E. O'Brien2000-05-101-1/+1
| | | | | | | Use sys/random.h rather than i386 specific one. Notes: svn path=/stable/4/; revision=60307
* MFC: Supported EGC 640x400, PEGC 640x400 and PEGC 640x480 graphics modes.Yoshihiro Takahashi2000-05-051-0/+5
| | | | Notes: svn path=/stable/4/; revision=60039
* MFC:Kazutaka YOKOTA2000-04-035-116/+165
| | | | | | | | | | | | | - Fix SC_ALT_MOUSE_IMAGE; don't blink the mouse cursor. - Fix non-destructive, underline text cursor. - Unbreak LINT. They correspond to: syscons_isa.c 1.12, scmouse.c 1.13, scvgarndr.c 1.7, scvidctl.c 1.20, syscons.c 1.337, 1.338, syscons.h 1.61, 1.62. Notes: svn path=/stable/4/; revision=58974
* MFC: White-space-only change. The file originally had screwed indentation.Kazutaka YOKOTA2000-03-201-382/+395
| | | | | | | (rev 1.5). Notes: svn path=/stable/4/; revision=58376
* MFC: Fix bugs when painting border and the mouse cursor in the rasterKazutaka YOKOTA2000-03-201-24/+30
| | | | | | | text mode (rev 1.6). Notes: svn path=/stable/4/; revision=58375
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-03-1313-2749/+0
| | | | Notes: svn path=/stable/4/; revision=57955
* - Don't reset text colors when changing the video mode.Kazutaka YOKOTA2000-02-111-0/+2
| | | | | | | Approved by: jkh Notes: svn path=/head/; revision=57130
* - Fix text cursor logic so that multiple instances of the "normal" cursorKazutaka YOKOTA2000-02-112-5/+7
| | | | | | | | | | won't appear on the screen, and "blinking" and "destructive" cursor won't appear in the vty for which the text cursor is currently hidden. Approved by: jkh Notes: svn path=/head/; revision=57129
* Use config's conditional compilation rather than using #ifdefs that makePeter Wemm2000-01-2912-65/+2
| | | | | | | | modular compilation harder. I'm doing this because people seem to like cut/pasting examples of bad practices in existing code. Notes: svn path=/head/; revision=56836
* Fix a bug exposed by the previous commit. Do not use scp->font_size,Kazutaka YOKOTA2000-01-241-2/+5
| | | | | | | | | if the screen is in a graphics mode Reported by: Maxim Sobolev <sobomax@altavista.net> Notes: svn path=/head/; revision=56528
* Unconditionally define sc_paste().Kazutaka YOKOTA2000-01-202-4/+0
| | | | Notes: svn path=/head/; revision=56329
* Fix wrong usage of FONT_NONE. It was not meant to be set inKazutaka YOKOTA2000-01-204-5/+4
| | | | | | | | | | scp->font_size in the first place. It is redundant now and is removed. Found by: bde Notes: svn path=/head/; revision=56328
* This is the 3rd stage of syscons code reorganization.Kazutaka YOKOTA2000-01-1516-1247/+2352
| | | | | | | | | | | | | | | | | | - Split terminal emulation code from the main part of the driver so that we can have alternative terminal emulator modules if we like in the future. (We are not quite there yet, though.) - Put sysmouse related code in a separate file, thus, simplifying the main part of the driver. As some files are added to the source tree, you need to run config(8) before you compile a new kernel next time. You shouldn't see any functional change by this commit; this is only internal code reorganization. Notes: svn path=/head/; revision=56043
* Make the mouse cursor char code configurable via the CONS_MOUSECTLKazutaka YOKOTA2000-01-124-18/+38
| | | | | | | | | ioctl. By popular demand. Notes: svn path=/head/; revision=55849
* Add a new mechanism, cndbctl(), to tell the console driver thatKazutaka YOKOTA2000-01-111-27/+28
| | | | | | | | | | | | | | | | | | | | | | | | ddb is entered. Don't refer to `in_Debugger' to see if we are in the debugger. (The variable used to be static in Debugger() and wasn't updated if ddb is entered via traps and panic anyway.) - Don't refer to `in_Debugger'. - Add `db_active' to i386/i386/db_interface.d (as in alpha/alpha/db_interface.c). - Remove cnpollc() stub from ddb/db_input.c. - Add the dbctl function to syscons, pcvt, and sio. (The function for pcvt and sio is noop at the moment.) Jointly developed by: bde and me (The final version was tweaked by me and not reviewed by bde. Thus, if there is any error in this commit, that is entirely of mine, not his.) Some changes were obtained from: NetBSD Notes: svn path=/head/; revision=55823
* - Remember the keyboard repeat delay and rate.Kazutaka YOKOTA1999-12-131-0/+1
| | | | | | | | - Add a new ioctl, KDGETREPEAT, to retrieve the keyboard repeat rate. - Delete unnecessary #include. Notes: svn path=/head/; revision=54543
* Fix memory leak.Kazutaka YOKOTA1999-12-101-0/+1
| | | | | | | | PR: kern/15363 Submitted by: Oliver Fromme Notes: svn path=/head/; revision=54387
* Add "panic key" function to syscons. When this key is defined in aKazutaka YOKOTA1999-12-101-0/+10
| | | | | | | | | | | | | | | | | | | | | keymap and pressed, the system panic will be forced. This feature must be specifically enabled by a new sysctl variable: machdep.enable_panic_key. Its default value is 0. The panic key won't do anything unless this variable is set to non-zero. To use the panic key, add a keyword 'panic' to a key in your keymap file. The following example assigns the panic function to SysReq (Alt-PrintScreen) key (keycode 84). 083 del '.' '.' '.' '.' '.' boot boot N 084 panic nop nop nop panic nop nop nop O 085 nop nop nop nop nop nop nop nop O PR: kern/13721 Notes: svn path=/head/; revision=54381
* Fix mouse cursor logic which I broke in 1.1 ;-<Kazutaka YOKOTA1999-12-061-26/+30
| | | | | | | Reported by: Christian Weisgerber <naddy@unix-ag.uni-kl.de> Notes: svn path=/head/; revision=54182
* Fix cursor position calculation.Kazutaka YOKOTA1999-12-051-1/+2
| | | | | | | Submitted by: Cejka Rudolf <cejkar@dcse.fee.vutbr.cz> Notes: svn path=/head/; revision=54144
* - Fail VT switching when the controlling program, such as theKazutaka YOKOTA1999-11-281-4/+4
| | | | | | | | | X server, is not responding to the VT switching protocol. (This part of the code has been somewhat wrong in -CURRENT, but -STABLE has the correct code...) Notes: svn path=/head/; revision=53816
* Correctly record the mouse position in the current VTY.Kazutaka YOKOTA1999-11-091-23/+22
| | | | Notes: svn path=/head/; revision=53057
* - Added a new kernel configuration option: SC_TWOBUTTON_MOUSE.Kazutaka YOKOTA1999-11-081-2/+10
| | | | | | | | | | The new option will make the right mouse button the `paste' button. Useful for two button mice. Submitted by: morganw@engr.sc.edu (Wes Morgan) Notes: svn path=/head/; revision=53011
* - Removed SC_VIDEO_DEBUG. It is broken and useless now.Kazutaka YOKOTA1999-11-081-22/+0
| | | | Notes: svn path=/head/; revision=53008
* Change isspace() macro name to avoid conflict.Archie Cobbs1999-11-021-10/+10
| | | | Notes: svn path=/head/; revision=52813
* - Remove cdevsw_add().Kazutaka YOKOTA1999-10-061-7/+0
| | | | Notes: svn path=/head/; revision=51966
* Add the apm_saver syscons screen saver module.Nick Sayer1999-10-021-0/+91
| | | | | | | | | | | | | | | | | apm_saver uses the apm_display() routine from the apm system to "suspend" the "display" part of the machine. This is beneficial for some laptops (or other machines with non-traditional displays) that choke on the 'green' saver's effect. Another way of looking at this is that it's the same as a screen saver that does an 'apm -d 0' to blank the display and an 'apm -d 1' to bring it back. One probably ought to use these commands to make sure the effect will be correct before using it unattended. Notes: svn path=/head/; revision=51851
* Introduce ttyread() and ttywrite() which do the canonical thing.Poul-Henning Kamp1999-09-281-12/+2
| | | | | | | | | Use them in many tty drivers. Reviewed by: julian, bde Notes: svn path=/head/; revision=51756
* Remove five now unused fields from struct cdevsw. They should neverPoul-Henning Kamp1999-09-251-6/+1
| | | | | | | | | | | have been there in the first place. A GENERIC kernel shrinks almost 1k. Add a slightly different safetybelt under nostop for tty drivers. Add some missing FreeBSD tags Notes: svn path=/head/; revision=51658
* This patch clears the way for removing a number of tty relatedPoul-Henning Kamp1999-09-253-11/+4
| | | | | | | | | | | | | | | | | | | | | | | | fields in struct cdevsw: d_stop moved to struct tty. d_reset already unused. d_devtotty linkage now provided by dev_t->si_tty. These fields will be removed from struct cdevsw together with d_params and d_maxio Real Soon Now. The changes in this patch consist of: initialize dev->si_tty in *_open() initialize tty->t_stop remove devtotty functions rename ttpoll to ttypoll a few adjustments to these changes in the generic code a bump of __FreeBSD_version add a couple of FreeBSD tags Notes: svn path=/head/; revision=51654
* - Hang the scr_stat struct from dev_t.Kazutaka YOKOTA1999-09-196-139/+97
| | | | | | | | | | | | | | | | - Remove sc_get_scr_stat(). It's not necessary anymore. - Call ttymalloc() to allocate the struct tty for each vty, rather than statically declaring an array of struct tty. We still need a statically allocated struct tty for the first vty which is used for the kernel console I/O, though. - Likewise, call ttymalloc() for /dev/sysmouse and /dev/consolectl. - Delete unnecessary test on the pointer struct tty *tp in some functions. - Delete unused code in scmouse.c. WARNING: this change requires you to recompile screen savers! Notes: svn path=/head/; revision=51404
* - Preserve the content of the back scroll buffer when changing theKazutaka YOKOTA1999-09-193-10/+52
| | | | | | | | | | video mode. Requested by: a lot of people. PR: kern/13764 Notes: svn path=/head/; revision=51394
* Enable ioctls to manipulate color palette. They have been implemented,Kazutaka YOKOTA1999-09-021-3/+0
| | | | | | | but disabled until now... Notes: svn path=/head/; revision=50793
* s/si_tty_tty/si_tty/gPoul-Henning Kamp1999-08-301-10/+10
| | | | Notes: svn path=/head/; revision=50652
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2819-19/+19
| | | | Notes: svn path=/head/; revision=50477
* - Retain the previous vty and history buffers when setting upKazutaka YOKOTA1999-08-271-8/+5
| | | | | | | | the graphics mode. This was the behavior prior to syscons.c rev 1.278, but broken in scvidctl.c rev 1.1. Notes: svn path=/head/; revision=50447
* Convert DEVFS hooks in (most) drivers to make_dev().Poul-Henning Kamp1999-08-231-6/+1
| | | | | | | | | | | | | | | | | | | Diskslice/label code not yet handled. Vinum, i4b, alpha, pc98 not dealt with (left to respective Maintainers) Add the correct hook for devfs to kern_conf.c The net result of this excercise is that a lot less files depends on DEVFS, and devtoname() gets more sensible output in many cases. A few drivers had minor additional cleanups performed relating to cdevsw registration. A few drivers don't register a cdevsw{} anymore, but only use make_dev(). Notes: svn path=/head/; revision=50254
* Implement a new generic mechanism for attaching handler functions toMike Smith1999-08-211-4/+6
| | | | | | | | | | | | | | | | events, in order to pave the way for removing a number of the ad-hoc implementations currently in use. Retire the at_shutdown family of functions and replace them with new event handler lists. Rework kern_shutdown.c to take greater advantage of the use of event handlers. Reviewed by: green Notes: svn path=/head/; revision=50107
* First small steps at merging DEVFS and PHK's Dev_t stuff.Julian Elischer1999-08-201-2/+5
| | | | Notes: svn path=/head/; revision=50092
* Wrap two declarations that are only used in an #ifdef in their own #ifdef.Bill Fumerola1999-08-171-1/+5
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=49986
* Fix a warning on the alpha.Dmitrij Tejblum1999-08-131-3/+1
| | | | Notes: svn path=/head/; revision=49694
* Merge the cons.c and cons.h to the best of my ability. alpha may orPoul-Henning Kamp1999-08-091-2/+2
| | | | | | | may not compile, I can't test it. Notes: svn path=/head/; revision=49558
* register tty devices so they will look right in pstat.Poul-Henning Kamp1999-08-081-61/+26
| | | | Notes: svn path=/head/; revision=49547