Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Apr 1995 00:27:28 +0200 (MET DST)
From:      J Wunsch <j@jette.heep.sax.de>
To:        paul@isl.cf.ac.uk (Paul Richards)
Cc:        FreeBSD-current@FreeBSD.org
Subject:   Re: Switching vty's from software?
Message-ID:  <199504232227.AAA02772@jette.heep.sax.de>
In-Reply-To: <199504232117.WAA02198@isl.cf.ac.uk> from "Paul Richards" at Apr 23, 95 10:17:33 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Is there a way to switch vty's from software. If not can it be added.

ioctl(fd, VT_ACTIVATE, vt_no);

Note that vt_no is 1-based.

Works with both, syscons and pcvt, for the latter only if compiled with
XSERVER support enabled.

I don't think there's a man page covering syscons.  pcvt omits the
USL-style VT compatibility commands in its man page, since they are
considered to be compatibility cruft only.  They do not fully fit
into the berkeley ioctl style (e.g., they do not take an int* as
their third argument, but rather the int itself).

Remember, that libforms could also be run off a plain VT100. :-)


Jörg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504232227.AAA02772>