Xref: utzoo comp.sources.wanted:5635 comp.sources.d:2997 Path: utzoo!attcan!uunet!vsi!friedl From: friedl@vsi.COM (Stephen J. Friedl) Newsgroups: comp.sources.wanted,comp.sources.d Subject: Re: using curses from a script? Summary: Tput in SVR3 is parameterized Message-ID: <949@vsi.COM> Date: 24 Nov 88 02:10:30 GMT References: <7668@well.UUCP> <1247@vsedev.VSE.COM> Organization: V-Systems, Inc. -- Santa Ana, CA Lines: 22 In article <7668@well.UUCP> Jef Poskanzer writes: >Has anyone written a tool to perform curses functions from a shell script? In article <1247@vsedev.VSE.COM>, logan@vsedev.VSE.COM (James Logan III) writes: > Have you ever heard of tput(1) under System V? It almost does > what you want with the exception that you can't give it screen > addressing arguments. System V Release 3.1 (maybe 3.0?) has a tput that does parameterization the right way: $ tput 12 37 ; echo foobar centers our favorite phrase on most screens (the general case, using `tput lines` and such is left as an exercise to the reader). Steve -- Steve Friedl V-Systems, Inc. +1 714 545 6442 3B2-kind-of-guy friedl@vsi.com {backbones}!vsi.com!friedl attmail!vsi!friedl ------------Nancy Reagan on climaxes: "Just say moan!"------------- :wq!