Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Nov 2000 14:42:02 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Graham Wheeler <gram@cequrux.com>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Help writing a screen saver module
Message-ID:  <20001107144202.B4569@dan.emsphone.com>
In-Reply-To: <xzpofzrww7o.fsf@flood.ping.uio.no>; from "Dag-Erling Smorgrav" on Tue Nov  7 18:03:39 GMT 2000
References:  <3A06B7A7.7665C46A@cequrux.com> <xzpofzrww7o.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Nov 07), Dag-Erling Smorgrav said:
> Graham Wheeler <gram@cequrux.com> writes:
> > I am trying to write a screen saver module that, when it kicks in,
> > will switch to the first console, and then, if a key is pressed,
> > will switch back to the one that was previously active. The idea is
> > that the first console has something useful running on it,
> > typically a tail -f of the logs.
> 
> Switching consoles causes syscons to stop the screensaver, which
> causes your code to try to switch back to the original console, which
> causes syscons to stop the screensaver since seems to be running. In
> other words, Don't Do That. Sorry.

You can make it look like you're switched to vty 0, by making your
screen_saver() function simply copy the contents of vty 0 to screen
memory on every update.  Just make sure both vtys are the same size
first...

-- 
	Dan Nelson
	dnelson@emsphone.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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