Re: vidcontrol: getting active vty: Inappropriate ioctl for device

2007-05-20 Thread Alexey Mikhailov
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).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: vidcontrol: getting active vty: Inappropriate ioctl for device

2007-05-20 Thread Peter Schuller
> 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.

-- 
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller <[EMAIL PROTECTED]>'
Key retrieval: Send an E-Mail to [EMAIL PROTECTED]
E-Mail: [EMAIL PROTECTED] Web: http://www.scode.org




signature.asc
Description: OpenPGP digital signature