Xref: utzoo comp.sources.wanted:5627 comp.sources.d:2988 Path: utzoo!attcan!uunet!wyse!vsi1!ames!ncar!boulder!spot!wu From: wu@spot.Colorado.EDU (WU SHI-KUEI) Newsgroups: comp.sources.wanted,comp.sources.d Subject: Re: using curses from a script? Message-ID: <4841@boulder.Colorado.EDU> Date: 23 Nov 88 16:12:55 GMT References: <7668@well.UUCP> <1247@vsedev.VSE.COM> Sender: news@boulder.Colorado.EDU Reply-To: wu@spot.Colorado.EDU (WU SHI-KUEI) Organization: University of Colorado, Boulder Lines: 22 In article <1247@vsedev.VSE.COM> logan@vsedev.VSE.COM (James Logan III) writes: >In article <7668@well.UUCP> Jef Poskanzer writes: >>Has anyone written a tool to perform curses functions from a shell script? >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. Instead you can say "tput cup" and it will >give you something like: > > ^[[%i%p1%d;%p2%dH > >that you can parse pretty easily. On my 3B2 running SVR3.1, I can write tput cup 10 10 and the cursor will be positioned as expected. No further parsing is required. Just a guest here - in reality Carl Brandauer uunet!nbires!bdaemon!carl