From owner-freebsd-questions@FreeBSD.ORG Thu Oct 12 18:05:44 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4FAC16A417 for ; Thu, 12 Oct 2006 18:05:44 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (dsl081-227-250.chi1.dsl.speakeasy.net [64.81.227.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id B019C43D4C for ; Thu, 12 Oct 2006 18:05:11 +0000 (GMT) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.6/8.12.11) with ESMTP id k9CI4Ydo043114; Thu, 12 Oct 2006 13:04:37 -0500 (CDT) Message-Id: <6.0.0.22.2.20061012130352.022ba290@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Thu, 12 Oct 2006 13:04:18 -0500 To: "Murray Taylor" , From: Derek Ragona In-Reply-To: <04E232FDCD9FBE43857F7066CAD3C0F11EF96C@svmailmel.bytecraft .internal> References: <04E232FDCD9FBE43857F7066CAD3C0F11EF96C@svmailmel.bytecraft.internal> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Question re ncurses and the various ttys X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Oct 2006 18:05:44 -0000 You should be able to do this, provided the perms are set right on that device. -Derek At 10:24 PM 10/11/2006, Murray Taylor wrote: >Hi all > >I've been digging around in the various man pages and havent yet found >the >incantations I require. > >Goal: to create a curses driven status screen that can run without user >intervention. > >I want to know if it is possible to _programatically_ switch to an >unused >virtual tty, and then use this as the display page. >( By unused I mean marked 'off' in /etc/ttys ) > >So if I set ttyv7 to off, can I launch a program (possibly from >a cold boot) that selects tty7 ( ie the now getty-less terminal ), >possibly sets the rows and cols like th ecommand line vidcontrol can, >and then continues executing a curses app ? > >I can write the curses bit. > >Can I execute vidcontrol(1) via a system(3) call and make it stick after >the >call returns or does it only affect the environment within the call. > >Can I programtically do the same as Alt-F8 to preselect my screen? >Will the curses output go onto this selected screen or would it go >to the initial console screen? (Hmm maybe that is part of the answer, >in the form of "Does curses output only go to the current console?" > >( ... am I even on the right track ?? ) > > > >Murray Taylor > >Special Projects Engineer >Bytecraft Systems > >-- > >"Any intelligent fool can make things bigger and more complex... It >takes a >touch of genius - and a lot of courage to move in the opposite >direction." >--Albert Einstein > >--------------------------------------------------------------- >The information transmitted in this e-mail is for the exclusive >use of the intended addressee and may contain confidential >and/or privileged material. Any review, re-transmission, >dissemination or other use of it, or the taking of any action >in reliance upon this information by persons and/or entities >other than the intended recipient is prohibited. If you >received this in error, please inform the sender and/or >addressee immediately and delete the material. > >E-mails may not be secure, may contain computer viruses and >may be corrupted in transmission. Please carefully check this >e-mail (and any attachment) accordingly. No warranties are >given and no liability is accepted for any loss or damage >caused by such matters. >--------------------------------------------------------------- > >### This e-mail message has been scanned for Viruses by Bytecraft ### >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > >-- >This message has been scanned for viruses and >dangerous content by MailScanner, and is >believed to be clean. >MailScanner thanks transtec Computers for their support. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.