Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Oct 2006 13:24:55 +1000
From:      "Murray Taylor" <MTaylor@bytecraft.com.au>
To:        <freebsd-questions@freebsd.org>
Subject:   Question re ncurses and the various ttys
Message-ID:  <04E232FDCD9FBE43857F7066CAD3C0F11EF96C@svmailmel.bytecraft.internal>

next in thread | raw e-mail | index | archive | help
Hi all

I've been digging around in the various man pages and havent yet found
the=20
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=20
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=20
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 ?=20

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=20

---------------------------------------------------------------
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.=20

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 ###



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