From owner-freebsd-current Sun Apr 23 15:38:57 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA12532 for current-outgoing; Sun, 23 Apr 1995 15:38:57 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id PAA12525 for ; Sun, 23 Apr 1995 15:38:52 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de with SMTP (5.67b+/DEC-Ultrix/4.3) id AA06722; Mon, 24 Apr 1995 00:38:49 +0200 Received: by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id AAA11028; Mon, 24 Apr 1995 00:38:48 +0200 Received: (from j@localhost) by jette.heep.sax.de (8.6.8/8.6.9) id AAA02772; Mon, 24 Apr 1995 00:27:31 +0200 From: J Wunsch Message-Id: <199504232227.AAA02772@jette.heep.sax.de> Subject: Re: Switching vty's from software? To: paul@isl.cf.ac.uk (Paul Richards) Date: Mon, 24 Apr 1995 00:27:28 +0200 (MET DST) Cc: FreeBSD-current@FreeBSD.org In-Reply-To: <199504232117.WAA02198@isl.cf.ac.uk> from "Paul Richards" at Apr 23, 95 10:17:33 pm Reply-To: joerg_wunsch@uriah.heep.sax.de X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 624 Sender: current-owner@FreeBSD.org Precedence: bulk > > 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