Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Sep 2002 12:27:07 +0200 (CEST)
From:      Oliver Fromme <olli@secnetix.de>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Re: tput & term problem during rc
Message-ID:  <200209211027.g8LAR7Gn079964@lurza.secnetix.de>
In-Reply-To: <5.1.0.14.0.20020920124912.00be0c58@mail.lusidor.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Jimmy Lantz <jimmy.lantz@lusidor.com> wrote:
 > I'm trying to run a shellscript during the rc (output to monitor connected 
 > directly to server)
 > 
 > But when I do a  "clear" I get the following error
 >         tput: no terminal type specified and no term eniviromental variable
 > 
 > I also use the dialog utility ( /usr/bin/dialog ) but the output gets 
 > totally screwed up.
 > 
 > What I gather is that the terminal info hasent been set yet.
 > How do I set it?

You should set the TERM environment variable to the terminal
that you're using as console.  If you're using the syscons
internal console, do this at the beginning of your script:

export TERM=cons25

Otherwise (serial console or whatever) set it to the appro-
priate terminal name, typically "vt100" or similar.

 > Any pointers to docs, howtos faqs are welcome

The manpages should be obvious:  clear(1) (which is the same
as tput(1)) and termcap(5).

Regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"All that we see or seem is just a dream within a dream" (E. A. Poe)

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




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