From owner-freebsd-questions@FreeBSD.ORG Sun May 20 14:59:41 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EC6A116A400 for ; Sun, 20 May 2007 14:59:41 +0000 (UTC) (envelope-from karma@ez.pereslavl.ru) Received: from pier.botik.ru (pier.botik.ru [193.232.174.1]) by mx1.freebsd.org (Postfix) with ESMTP id A410813C480 for ; Sun, 20 May 2007 14:59:41 +0000 (UTC) (envelope-from karma@ez.pereslavl.ru) Received: from ez.pereslavl.ru ([192.168.56.29]:32831 helo=almond) by pier.botik.ru with esmtp (Exim 4.50) id 1HpmXC-0006br-6i; Sun, 20 May 2007 18:37:26 +0400 Received: from brig2-slavich-priv.botik.ru ([192.168.0.2]) by almond with esmtp (Exim 4.50) id 1HpmVh-0002ui-AF; Sun, 20 May 2007 18:35:49 +0400 From: Alexey Mikhailov To: freebsd-questions@freebsd.org Date: Sun, 20 May 2007 18:37:29 +0400 User-Agent: KMail/1.9.6 References: <20070519191926.75991.qmail@web34413.mail.mud.yahoo.com> <46505A69.8090005@infidyne.com> In-Reply-To: <46505A69.8090005@infidyne.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705201837.30604.karma@ez.pereslavl.ru> Cc: White Hat , Peter Schuller Subject: Re: vidcontrol: getting active vty: Inappropriate ioctl for device 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: Sun, 20 May 2007 14:59:42 -0000 On Sunday 20 May 2007 18:25:45 Peter Schuller wrote: > > vidcontrol: getting active vty: Inappropriate ioctl > > for device > > > > I have this entry in the ~/.bash_profile file: > > > > vidcontrol lightcyan > > vidcontrol is trying to affect the system console, and does it by > manipulation file descriptor 0 (stdin). If you are logging in at the > user in question at the console it should work. But in X it won't. > You can make it do what you ask to the system console with: > > vidcontrol < /dev/console > > But that will require root privileges. I've something like if [ $TERM = "xterm" -o $TERM = "xterm-color" ]; then export TERM="xterm-color" elif [ $TERM = "cons25" ]; then vidcontrol -r yellow black green black fi in my ~/.zprofile. But you need to change "cons25" to terminal type that corresponds your console (echo $TERM in console).