summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/scmouse.c
Commit message (Collapse)AuthorAgeFilesLines
* Add VESA mode support for syscons, which enables the support of 15, 16,delphij2005-05-291-12/+6
| | | | | | | | | | | | | | | | | | | | | 24, and 32 bit modes. To use that, syscons(4) must be built with the compile time option 'options SC_PIXEL_MODE', and VESA support (a.k.a. vesa.ko) must be either loaded, or be compiled into the kernel. Do not return EINVAL when the mouse state is changed to what it already is, which seems to cause problems when you have two mice attached, and applications are not likely obtain useful information through the EINVAL caused by showing the mouse pointer twice. Teach vidcontrol(8) about mode names like MODE_<NUMBER>, where <NUMBER> is the video mode number from the vidcontrol -i mode output. Also, revert the video mode if something fails. Obtained from: DragonFlyBSD Discussed at: current@ with patch attached [1] PR: kern/71142 [2] Submitted by: Xuefeng DENG <dsnofe at msn com> [1], Cyrille Lefevre <cyrille dot lefevre at laposte dot net> [2]
* Use __FBSDID().obrien2003-08-241-2/+3
| | | | Also some minor style cleanups.
* - Add a font width field to struct scr_stat. Use this instead of '8'.jake2003-08-241-7/+9
| | | | | - Use the values in the video info for the font size and width instead of second guessing.
* Use SC_NO_CUTPASTE to protect cutpaste variables correctly, fixing thejmallett2003-06-011-2/+4
| | | | | | | -Werror build with such option, but not other combinations. LINT misses this because syscons knobs in LINT turn off a lot of code. Reviewed by: marcel (some time ago)
* Deprecate machine/limits.h in favor of new sys/limits.h.kan2003-04-291-1/+1
| | | | | | | Change all in-tree consumers to include <sys/limits.h> Discussed on: standards@ Partially submitted by: Craig Rodrigues <rodrigc@attbi.com>
* Back out M_* changes, per decision of the TRB.imp2003-02-191-1/+1
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-1/+1
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Use machine/limits.h rather than userland limits.h (which may come frompeter2002-08-221-1/+1
| | | | the userland source tree, or even worse: /usr/include)
* 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.
* 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-121-3/+3
| | | | | | | | | | | | | | 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 dependencies between kernel options:yokota2001-07-101-2/+0
| | | | | | | | | | - 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
* 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
* Undo part of the tangle of having sys/lock.h and sys/mutex.h included inmarkm2001-05-011-5/+7
| | | | | | | | | | | 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-241-8/+9
| | | | | | 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>
* 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-121-2/+1
| | | | | | 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.
* Implement keyboard pasteache2001-03-111-5/+4
| | | | | PR: 25499 Submitted by: Gaspar Chilingarov <nm@web.am>
* Grab the process lock while calling psignal and before calling psignal.jhb2001-03-071-0/+4
|
* Initiate deorbit burn sequence for <machine/mouse.h>.phk2000-10-091-2/+1
| | | | | | | | | | Replace all in-tree uses with <sys/mouse.h> which repo-copied a few moments ago from src/sys/i386/include/mouse.h by peter. This is also the appropriate fix for exo-tree sources. Put warnings in <machine/mouse.h> to discourage use. November 15th 2000 the warnings will be converted to errors. January 15th 2001 the <machine/mouse.h> files will be removed.
* 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.
* Harvest mouse events for the entropy device in a better place. In themarkm2000-09-101-0/+4
| | | | | | new location, all mouse events are harvested, not just the ones being written out to moused(8). This means that mouse entropy is harvested at the consoles as well as in X.
* - Fix SC_ALT_MOUSE_IMAGE; don't blink the mouse cursor.yokota2000-03-311-17/+13
| | | | - Fix non-destructive, underline text cursor.
* Use config's conditional compilation rather than using #ifdefs that makepeter2000-01-291-5/+0
| | | | | modular compilation harder. I'm doing this because people seem to like cut/pasting examples of bad practices in existing code.
* Fix a bug exposed by the previous commit. Do not use scp->font_size,yokota2000-01-241-2/+5
| | | | | | if the screen is in a graphics mode Reported by: Maxim Sobolev <sobomax@altavista.net>
* Fix wrong usage of FONT_NONE. It was not meant to be set inyokota2000-01-201-1/+1
| | | | | | | scp->font_size in the first place. It is redundant now and is removed. Found by: bde
* This is the 3rd stage of syscons code reorganization.yokota2000-01-151-201/+15
| | | | | | | | | | | | | | | - 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.
* Make the mouse cursor char code configurable via the CONS_MOUSECTLyokota2000-01-121-0/+18
| | | | | | ioctl. By popular demand.
* Fix mouse cursor logic which I broke in 1.1 ;-<yokota1999-12-061-26/+30
| | | | Reported by: Christian Weisgerber <naddy@unix-ag.uni-kl.de>
* Correctly record the mouse position in the current VTY.yokota1999-11-091-23/+22
|
* - Added a new kernel configuration option: SC_TWOBUTTON_MOUSE.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)
* Change isspace() macro name to avoid conflict.archie1999-11-021-10/+10
|
* - Hang the scr_stat struct from dev_t.yokota1999-09-191-34/+11
| | | | | | | | | | | | | - 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!
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* The second phase of syscons reorganization.yokota1999-06-221-0/+1083
- Split syscons source code into manageable chunks and reorganize some of complicated functions. - Many static variables are moved to the softc structure. - Added a new key function, PREV. When this key is pressed, the vty immediately before the current vty will become foreground. Analogue to PREV, which is usually assigned to the PrntScrn key. PR: kern/10113 Submitted by: Christian Weisgerber <naddy@mips.rhein-neckar.de> - Modified the kernel console input function sccngetc() so that it handles function keys properly. - Reorganized the screen update routine. - VT switching code is reorganized. It now should be slightly more robust than before. - Added the DEVICE_RESUME function so that syscons no longer hooks the APM resume event directly. - New kernel configuration options: SC_NO_CUTPASTE, SC_NO_FONT_LOADING, SC_NO_HISTORY and SC_NO_SYSMOUSE. Various parts of syscons can be omitted so that the kernel size is reduced. SC_PIXEL_MODE Made the VESA 800x600 mode an option, rather than a standard part of syscons. SC_DISABLE_DDBKEY Disables the `debug' key combination. SC_ALT_MOUSE_IMAGE Inverse the character cell at the mouse cursor position in the text console, rather than drawing an arrow on the screen. Submitted by: Nick Hibma (n_hibma@FreeBSD.ORG) SC_DFLT_FONT makeoptions "SC_DFLT_FONT=_font_name_" Include the named font as the default font of syscons. 16-line, 14-line and 8-line font data will be compiled in. This option replaces the existing STD8X16FONT option, which loads 16-line font data only. - The VGA driver is split into /sys/dev/fb/vga.c and /sys/isa/vga_isa.c. - The video driver provides a set of ioctl commands to manipulate the frame buffer. - New kernel configuration option: VGA_WIDTH90 Enables 90 column modes: 90x25, 90x30, 90x43, 90x50, 90x60. These modes are mot always supported by the video card. PR: i386/7510 Submitted by: kbyanc@freedomnet.com and alexv@sui.gda.itesm.mx. - The header file machine/console.h is reorganized; its contents is now split into sys/fbio.h, sys/kbio.h (a new file) and sys/consio.h (another new file). machine/console.h is still maintained for compatibility reasons. - Kernel console selection/installation routines are fixed and slightly rebumped so that it should now be possible to switch between the interanl kernel console (sc or vt) and a remote kernel console (sio) again, as it was in 2.x, 3.0 and 3.1. - Screen savers and splash screen decoders Because of the header file reorganization described above, screen savers and splash screen decoders are slightly modified. After this update, /sys/modules/syscons/saver.h is no longer necessary and is removed.
OpenPOWER on IntegriCloud