From owner-freebsd-questions Sat Sep 21 3:27:11 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C56837B401 for ; Sat, 21 Sep 2002 03:27:10 -0700 (PDT) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8653B43E4A for ; Sat, 21 Sep 2002 03:27:09 -0700 (PDT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [IPv6:::1]) by lurza.secnetix.de (8.12.5/8.12.5) with ESMTP id g8LAR7mC079965 for ; Sat, 21 Sep 2002 12:27:08 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.5/8.12.5/Submit) id g8LAR7Gn079964; Sat, 21 Sep 2002 12:27:07 +0200 (CEST) Date: Sat, 21 Sep 2002 12:27:07 +0200 (CEST) Message-Id: <200209211027.g8LAR7Gn079964@lurza.secnetix.de> From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG Reply-To: freebsd-questions@FreeBSD.ORG Subject: Re: tput & term problem during rc In-Reply-To: <5.1.0.14.0.20020920124912.00be0c58@mail.lusidor.com> X-Newsgroups: list.freebsd-questions User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.6-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jimmy Lantz 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