Commit Graph

90 Commits

Author SHA1 Message Date
Kazutaka YOKOTA
e64c88b2dc Use the correct ioctl command to set a VESA mode.
PR: 24423
MFC after: 10 days
2001-07-22 13:30:32 +00:00
Dag-Erling Smørgrav
031c57af94 Move the scrollback controls from kbdcontrol to vidcontrol.
Also fix some style bugs in the code and poor language in the man pages.

Reviewed by:	sobomax
2001-05-28 11:05:28 +00:00
Maxim Sobolev
1f22a113d0 - Sort usage() output;
- sync usage() with reality and manpage;
- display usage() even if terminal is not a syscons.

Submitted by:	ru, sobomax
2001-05-20 12:17:31 +00:00
Maxim Sobolev
d02ca551d3 Move scrshot(1) functionality into vidcontrol(1).
Suggested by:		many
Not objected to by:	nik (scrshot co-author)
2001-05-19 06:47:36 +00:00
Andrey A. Chernov
e4ef2fa234 Proper upper limit for mousechar start is UCHAR_MAX - 3, not UCHAR_MAX
PR:		24437
Submitted by:	Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
2001-04-21 13:50:32 +00:00
Maxim Sobolev
5e0db936b5 Allow user to omit font size specification when loading a font. In addition
the following fixes had been made:

- check the size of the font being loaded and compare it with possible sizes
  to minimise possibility of loading something that is not a fontfile at all
  and turning console screen into garbage;

- prevent buffer overflow (and coredump as a result ) when loading valid
  uuencoded file with size that exceeds allocated buffer;

- correct and improve several error messages.

Approved by:	-audit, -hackers (silently)
2001-04-09 17:24:29 +00:00
Maxim Sobolev
acdb2839d6 New option `-g' to allow selecting custom text geometry in VESA_800x600 raster
text mode. For example `vidcontrol -g 100x37 VESA_800x600' will setup 100x37
text mode as opposed to default 80x25.

Reviewed by:	imp
2001-01-25 16:53:22 +00:00
Poul-Henning Kamp
00d25f512c Initiate deorbit burn sequence for <machine/console.h>.
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.
2000-10-08 21:34:00 +00:00
Kazutaka YOKOTA
e2f29c6e43 Make the mouse cursor char code configurable via the CONS_MOUSECTL
ioctl.

By popular demand.
2000-01-12 12:30:33 +00:00
Bill Fumerola
39b235ef20 -Wall fix: ambigious else 1999-10-15 17:33:24 +00:00
Kazutaka YOKOTA
a0d3b21c88 Fix -s option.
PR: bin/13799
1999-09-19 08:04:07 +00:00
Peter Wemm
97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
Kazutaka YOKOTA
ac80d4b498 Reflect recent changes in syscons. 1999-06-22 14:15:46 +00:00
Doug Rabson
2bfad86d33 Back out a couple of i386 conditionals which aren't needed with the new
syscons and fix a few printfs.

Reviewed by: Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp>
1999-01-25 08:48:49 +00:00
Matt Jacob
bc9e0443f4 fix for compiling on alpha 1999-01-12 23:05:45 +00:00
Kazutaka YOKOTA
c67e8bd332 The first stage of console driver reorganization: activate new
keyboard and video card drivers.
1999-01-11 03:20:32 +00:00
Kazutaka YOKOTA
ad7b2eec31 - Express various sizes in bytes, rather than Kbytes, in the video
mode and adapter information structures.
1998-10-01 11:40:22 +00:00
Gary Palmer
028a80e4a8 Don't assume that we have extended modes on all platforms. 1998-09-24 01:36:36 +00:00
Kazutaka YOKOTA
cb1d2924c4 VESA BIOS support update in syscons.
- Accept generic video mode names: 80x25, 80x30, etc. Specific video
  mode names, VGA_80x25, VESA_132x25, are still accpeted too.
- Update the man page accordingly.
1998-09-23 10:00:15 +00:00
Andrzej Bialecki
8a8d9b082f Add new '-i' option to usage(). 1998-09-16 13:55:26 +00:00
Søren Schmidt
a8445737e7 Add VESA support to syscons.
Kazu writes:

The VESA support code requires vm86 support. Make sure your kernel
configuration file has the following line.
        options "VM86"
If you want to statically link the VESA support code to the kernel,
add the following option to the kernel configuration file.
        options "VESA"

The vidcontrol command now accepts the following video mode names:
VESA_132x25, VESA_132x43, VESA_132x50, VESA_132x60, VESA_800x600

The VESA_800x600 mode is a raster display mode. The 80x25 text will
be displayed on the 800x600 screen. Useful for some laptop computers.

vidcontrol accepts the new `-i <info>' option, where <info> must be
either `adapter' or `mode'.  When the `-i adapter' option is given,
vidcontrol will print basic information (not much) on the video
adapter. When the `-i mode' option is specified, vidcontrol will
list video modes which are actually supported by the video adapter.

Submitted by:   Kazutaka YOKOTA yokota@FreeBSD.ORG
1998-09-15 18:16:39 +00:00
Bruce Evans
af01fff37b ioctl() request args are unsigned longs, so don't attempt to store
them as ints.  Among other bugs, doing so at best caused benign
overflow followed by fatal sign extension on machines with 32-bit
ints and 64-bit longs.
1998-07-14 10:32:27 +00:00
Philippe Charnier
9396247ef7 Use err(3). Stylistic changes in man page. 1997-10-27 07:52:10 +00:00
Peter Wemm
ca54d4017a Update to compile under Lite2 includes 1997-03-11 14:25:31 +00:00
Brian Somers
bfc214e329 Add a -s option for setting the current vty. This should make
life easier if a PS/2 mouse locks up the keyboard (frequent-ish,
but not repeatable).
Tidy up code (a bit) and make it -Wall

Is this a 2.2 candidate ? (although it doesn't -Wall in 2.2 because
of the lack of sys/sysproto.h
1997-03-07 01:34:47 +00:00
Peter Wemm
476602a9d0 Revert $FreeBSD$ to $Id$ 1997-02-22 16:15:28 +00:00
Jordan K. Hubbard
1130b656e5 Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
1997-01-14 07:20:47 +00:00
Gary Palmer
21496d485b Fix typo.
Submitted by:	Philippe Charnier <charnier@xp11.frmug.org>
1996-07-03 22:06:12 +00:00
Søren Schmidt
bfa09c9c30 Added new -m option, that enable / disables the mousepointer on
a textmode screen.
1996-06-21 07:20:13 +00:00
Rodney W. Grimes
709e8f9ae1 Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
Dima Ruban
50d387a36e remove option "-s saver" from usage() 1995-03-03 21:21:24 +00:00
Søren Schmidt
17ee9d00bc Next syscons update (given up on numbering :)
Removed screensavers from syscons, they are now LKM's. This makes it
possible to do some really "interesting" screensavers...
Fixed bug that sometimes caused garbage to appear when leaving
"scroll-lock" history.
Reformattet indentation, it got too deep for a normal 80 pos screen.
Split up in syscons.c & syscons.h for use with the saver-lkm's.
Temporarily removed -s option from vidcontrol, savers should now
be loaded with modload.
1995-02-22 13:48:07 +00:00
Dima Ruban
8aec260842 Fixed usage() (cosmetic changes. "(string)" looks much better
than "(string" :-)
1995-02-08 01:07:16 +00:00
Søren Schmidt
e3dbac5e96 Added new choises of cursors. 1995-02-07 11:56:21 +00:00
Søren Schmidt
1f741c31eb Added 80x30 & 80x60 experimental modes officially. 1995-01-30 21:44:07 +00:00
Søren Schmidt
a926a37b0a Third round in syscons update.
Display update method changed, now allways write in memory buffer,
  then periodically update physical display.
Speed improvements (now > 5 times faster than the old syscons).
History now circular buffer, with changeable size.
History scroll by up/down line, up/down page, home and end.
Backtab proberly implemented.
Now space for 96 function keys, 63 allocated standard, default now
  SCO/SYSV compat again as in the old days.
New keyboard definition files ~share/syscons/keymaps/*
Misc fixes for old "hacks" that broke SCO/SYSV compat.
More that I forgot before writing this...
1995-01-28 22:18:05 +00:00
Søren Schmidt
6378775666 First round in syscons update. Several new features has been added:
No kernel config options anymore besides keyboard language layout.
Virtual consoles are now dynamically allocated, no NCONS anymore.
Software cursor blinking/nonblinking.
Visual bell for laptops (don't beep at meetings :-).
Cursor/bell default type setable via config "flags" instead of as defines.
Cursor/bell type setable via ioctl's.
New video modes 80x30 80x60 for some laptops, and those with multisync monitors.
Scroll-lock history (length currently fixed at 100 lines).
Lots of cleanups, some only commented out for now (will goaway soon).
Support for new features in vidcontrol/kbdcontrol.
Updated manpages.
1995-01-12 11:47:05 +00:00
Andrey A. Chernov
d28fc953f2 usage help: uncomment -d option, add -x option 1994-09-26 20:20:44 +00:00
Søren Schmidt
3644e2839b Added support for some of the new video modes in syscons.
Reviewed by:
Submitted by:
Obtained from:
1994-09-15 07:28:06 +00:00
Søren Schmidt
7363955db6 Added vidcontrol util from 1.1.5.1+
Reviewed by:
Submitted by:
1994-08-17 09:00:13 +00:00