summaryrefslogtreecommitdiffstats
path: root/usr.sbin/vidcontrol
Commit message (Collapse)AuthorAgeFilesLines
* vt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin fontdumbbell2014-10-312-9/+42
| | | | | | | | | | | | | To restore the default font using vidcontrol(1), use the "-f" flag without an argument: vidcontrol -f < /dev/ttyv0 PR: 193910 Differential Revision: https://reviews.freebsd.org/D971 Submitted by: Marcin Cieslak <saper@saper.info> Reviewed by: ray@, emaste@ Approved by: ray@ MFC of: r273544
* MFC r270647: Add references to vt(4) and the configuration files in /usr/shase2014-09-041-6/+31
| | | | | | | | | | | | | | | | | | | | | | MFC r270653: Update man-pages to correctly refer to changed pathes and namin MFC r270657: More man pages that need to know about vt in addition to syscon MFC r270659: (by pluknet@) Missed comma. MFC r270660: Back-out the references to vt(4) from this man-page. It appears MFC r270933: Add references to vt(4) to further man-pages. MFC r270934: Final patches to the tools used to convert syscons keymaps for MFC r270935: Add vt(4) support to the console initialisation script, specifi Second batch of MFCs to add support for Unicode keymaps for use with vt(4). It contains the following changes: - Add references to vt(4) to relevant man-pages. - Update comment in defaults/rc.conf to mention vt - Update rc.d/syscons to warn about syscons keymaps used under vt. An attempt is made to identify the vt keymap to load instead. - Minor changes to the conversion tool based on mail comments on keymaps. Relnotes: yes
* 267622 Log:ray2014-07-071-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename vt(4) vga module to dismiss interference with syscons(4) vga module. 267623 Log: Remove stale link to deleted vt(4) xboxfb driver. 267624 Log: syscons(4) and vt(4) can be built together now. 267625 Log: Allow to disable syscons(4) if "hw.syscons.disable" kenv is set. 267626 Log: Suspend vt(4) initialization if "kern.vt.disable" kenv is set. 267965 by emaste@ Log: Use a common tunable to choose between vt(4)/sc(4) With this change and previous work from ray@ it will be possible to put both in GENERIC, and have one enabled by default, but allow the other to be selected via the loader. (The previous implementation had separate kern.vt.disable and hw.syscons.disable tunables, and would panic if both drivers were compiled in and neither was explicitly disabled.) 268175 by emaste@ Log: Fix vt(4) detection in kbdcontrol and vidcontrol As sc(4) and vt(4) coexist and are both enabled in GENERIC, the existence of a vt(4) sysctl is not sufficient to determine that vt(4) is in use. Reported by: Trond Endrestøl 268045 by emaste@ Log: Add vt(4) to GENERIC and retire the separate VT config vt(4) and sc(4) can now coexist in the same kernel. To choose the vt driver, set the loader tunable kern.vty=vt . Sponsored by: The FreeBSD Foundation
* MFC: 266836, 266839ray2014-06-162-13/+142
| | | | | | | | | | | | | vt(4) support for vidcontrol(1). o Teach vidcontrol(1) how to load vt(4) font. o Teach vidcontrol(1) to distinct which virtual terminal system is running now. o Load vt(4) fonts from different location. o Add $FreeBSD$ tag for path.h. vt(4) support for kbdcontrol(1). Enable kbdcontrol(1) to use maps from vt(4) keymaps dir /usr/share/vt/keymaps if vt(4) is present. Sponsored by: The FreeBSD Foundation
* The M_VESA_MODE_MAX is latest valid mode - not the first invalid.eadler2013-05-111-1/+1
| | | | | | | | | | Permit its use in vidcontrol -i PR: bin/119483 Submitted by: Dan Lukes <dan@obluda.cz> Arrival-Date: Wed Jan 09 10:30:01 UTC 2008 Reviewed by: ed MFC after: 3 days
* More -Wmissing-variable-declarations fixes.ed2012-10-191-1/+1
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* Call set_terminal_mode() after video mode change, not before, becauseache2012-06-291-4/+8
| | | | | | | | video mode change always reset terminal mode to xterm. It allows things like 'vidcontrol -T cons25 80x30' works as supposed, and allows 'allscreens_flags="-T cons25 80x30"' in /etc/rc.conf too. MFC after: 1 week
* Spelling fixes for usr.sbin/uqs2011-12-301-4/+4
|
* Reencode files to UTF-8. Drop CP1252 em-dash.uqs2011-12-302-2/+2
|
* Add static keywords to vidcontrol(1).ed2011-12-111-13/+11
| | | | | | While there, remove the false optimisation of the colors array. It seems that changing it to an array of pointers instead of a 16x16 array does not cause any increase in binary size at all.
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-081-1/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* Print memory model of the video mode except for planar memory model.jkim2010-03-291-5/+32
| | | | | 'P', 'D', 'C', 'H', 'V' mean packed pixel, direct color, CGA, Hercules, VGA X memory models respectively where they have fixed number of planes.
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-2/+0
|
* Add a new flag to vidcontrol, -T, that allows terminal mode switching.ed2009-11-112-3/+22
| | | | | | This will make it more easy for people to experiment with TERM=xterm. Instead of echoing these strange escape sequences, I can just instruct them to run `vidcontrol -T xterm'.
* Tweak some wording and markup.ru2006-12-221-12/+13
|
* Remove bogus casts of valid integer ioctl() arguments.ru2006-09-261-2/+2
|
* Fix so that color changes are not lost when the video mode changes.rodrigc2005-09-171-0/+6
| | | | | PR: bin/83553 Submitted by: Dan Lukes <dan at obluda dot cz>
* Markup fixes.ru2005-06-141-2/+3
| | | | Approved by: re (blanket)
* Add VESA mode support for syscons, which enables the support of 15, 16,delphij2005-05-292-167/+572
| | | | | | | | | | | | | | | | | | | | | 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 \033 instead of \e because \e is not a standard.nyan2005-05-151-10/+10
| | | | | Noticed by: stefanf Reviewed by: diff(1)
* A foreground color number on pc98 console is 7 not 15.nyan2005-05-151-6/+18
|
* Use \e for escape char instead of ^[ directly.nyan2005-05-151-10/+10
|
* WANRS=6 cleanup for vidcontrol(1):delphij2005-01-133-93/+95
| | | | | | | | | | | | | - Use foo(void) instead of foo(). - Use static where applicable. - Apply more const's when passing parameters - signed/unsigned madness - Avoid namespace collision by adding underscores. - For 64-bit architectures, use %zx instead of %x when necessary. - When storing constants, use const instead of variable. - Bump WARNS?= from 2 to 6
* Propagate ioctl() failure to exit statuseivind2003-09-181-7/+10
|
* mdoc(7) police: Nits.ru2003-03-021-2/+4
|
* Document the fact that VTY locking is easily bypassable when DDBmux2003-02-271-0/+4
| | | | is compiled in the kernel. Also add some useful xrefs to lock(1).
* Add a new `-H' modifier, which when combined with `-p' or `-P' allows to dumpsobomax2002-08-192-14/+38
| | | | full console history.
* Remove some missing words.dd2002-07-101-3/+3
| | | | Submitted by: roam
* Deuglify the usage message by making it look more like the synopsis indd2002-07-101-3/+4
| | | | the manual page.
* Add an -S option that allows the user to disable vty switching. It isdd2002-07-102-3/+29
| | | | | | | | | | implemented using a new VT_LOCKSWITCH ioctl. Although it is possible to implement something like this by VT_SETMODEing to VT_PROCESS and never releasing the vty, that method has a number of downsides, the biggest of which is that some program has to stay resident for the lock to be in effect. Reviewed by: roam, sheldonh
* Fix typo in the BSD copyright: s/withough/without/schweikh2002-06-022-2/+2
| | | | | Spotted and suggested by: des MFC after: 3 weeks
* Use `The .Nm utility'charnier2002-04-201-2/+4
|
* Fix typo: s/forth/fourth/bmah2002-03-211-1/+1
|
* Grammar nits.ru2002-03-201-3/+3
|
* When loading a font allow suffix specifying its size be omited, in whichsobomax2002-03-162-41/+47
| | | | | | | | | | case use size of the currently displaying font as a suffix. For example, when the when the size of the currently displayed font is 8x8 the following command will load koi8-r-8x8.fnt. # vidcontrol -f koi8-r MFC after: 2 weeks
* mdoc(7) police: markup nits.ru2001-09-101-2/+2
| | | | | PR: docs/30473 Submitted by: Jonathan Hanna <jhanna@home.com>
* mdoc(7) police:ru2001-09-041-24/+16
| | | | | | | | | 1) Removed the low-level (unneeded in this context) details on escape sequences that are already documented in screen(4). 2) Removed whitespace at EOL. 3) Removed the garbage from previous revision.
* Add additional information about VGA attributes.murray2001-09-041-31/+47
| | | | | PR: docs/28000 Submitted by: Robert Drehmel <robert@zoot.quizbot.org>
* The ports that convert screendumps into text or png called scr2*, notsobomax2001-08-171-2/+4
| | | | | | | shot2*. PR: Submitted by: Olexander Kunytsa
* mdoc(7) police: protect trailing full stops of abbreviationsru2001-08-101-2/+2
| | | | with a trailing zero-width space: `e.g.\&'.
* mdoc(7) police:ru2001-08-071-2/+4
| | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block.
* Use the correct ioctl command to set a VESA mode.yokota2001-07-221-1/+3
| | | | | PR: 24423 MFC after: 10 days
* Remove GCC'isms in CFLAGS.obrien2001-07-201-2/+0
|
* Remove whitespace at EOL.dd2001-07-151-13/+13
|
* Add a comma between the two names in the CONTRIBUTERS section.dd2001-06-101-1/+1
|
* Add section "CONTRIBUTORS" and move nik and sobomax there, since we are notsobomax2001-05-291-0/+2
| | | | really "AUTHORS".
* Move the scrollback controls from kbdcontrol to vidcontrol.des2001-05-282-74/+105
| | | | | | Also fix some style bugs in the code and poor language in the man pages. Reviewed by: sobomax
* - Sort usage() output;sobomax2001-05-201-4/+7
| | | | | | | - sync usage() with reality and manpage; - display usage() even if terminal is not a syscons. Submitted by: ru, sobomax
* Spell FreeBSD.org correctly.ru2001-05-201-3/+3
|
* - Fix markup;sobomax2001-05-201-7/+12
| | | | | | - add nik into Authors section. Submitted by: ru
OpenPOWER on IntegriCloud