1*bb75b0d5SLexi Winter/* 2*bb75b0d5SLexi Winter * SPDX-License-Identifier: BSD-3-Clause 3*bb75b0d5SLexi Winter * 4*bb75b0d5SLexi Winter * Copyright (c) 1997 Søren Schmidt 5*bb75b0d5SLexi Winter * All rights reserved. 6*bb75b0d5SLexi Winter * 7*bb75b0d5SLexi Winter * Redistribution and use in source and binary forms, with or without 8*bb75b0d5SLexi Winter * modification, are permitted provided that the following conditions 9*bb75b0d5SLexi Winter * are met: 10*bb75b0d5SLexi Winter * 1. Redistributions of source code must retain the above copyright 11*bb75b0d5SLexi Winter * notice, this list of conditions and the following disclaimer, 12*bb75b0d5SLexi Winter * in this position and unchanged. 13*bb75b0d5SLexi Winter * 2. Redistributions in binary form must reproduce the above copyright 14*bb75b0d5SLexi Winter * notice, this list of conditions and the following disclaimer in the 15*bb75b0d5SLexi Winter * documentation and/or other materials provided with the distribution. 16*bb75b0d5SLexi Winter * 3. The name of the author may not be used to endorse or promote products 17*bb75b0d5SLexi Winter * derived from this software without specific prior written permission. 18*bb75b0d5SLexi Winter * 19*bb75b0d5SLexi Winter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 20*bb75b0d5SLexi Winter * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 21*bb75b0d5SLexi Winter * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 22*bb75b0d5SLexi Winter * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 23*bb75b0d5SLexi Winter * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 24*bb75b0d5SLexi Winter * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25*bb75b0d5SLexi Winter * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26*bb75b0d5SLexi Winter * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27*bb75b0d5SLexi Winter * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 28*bb75b0d5SLexi Winter * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29*bb75b0d5SLexi Winter */ 30*bb75b0d5SLexi Winter 31*bb75b0d5SLexi Wintercomment = "Video Graphics Library" 32*bb75b0d5SLexi Winter 33*bb75b0d5SLexi Winterdesc = <<EOD 34*bb75b0d5SLexi Winterlibvgl is a library that enables the programmer access to the graphics 35*bb75b0d5SLexi Wintermodes supported by the console driver (syscons). The library takes care 36*bb75b0d5SLexi Winterof programming the actual video hardware, and provides a number of simple 37*bb75b0d5SLexi Winterfunctions to do various graphic operations. 38*bb75b0d5SLexi Winter 39*bb75b0d5SLexi WinterThere is also support for a mouse via the standard mouse system in FreeBSD, 40*bb75b0d5SLexi Winterincluding the ability to transparently have a mouse pointer superimposed on 41*bb75b0d5SLexi Winterthe graphic image currently being worked on. 42*bb75b0d5SLexi Winter 43*bb75b0d5SLexi WinterThe library takes care of screen switching by storing the current image in 44*bb75b0d5SLexi Wintermemory before switching to another virtual console, and restoring when the 45*bb75b0d5SLexi Winteruser switches back. This allows several graphic applications at once, but 46*bb75b0d5SLexi Winteron different virtual consoles. 47*bb75b0d5SLexi WinterEOD 48