Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!sdd.hp.com!hplabs!hpl-opus!hpcc05!hpcuhb!hpkslx!kevin From: kevin@hpkslx.mayfield.HP.COM (Kevin Steves) Newsgroups: comp.unix.shell Subject: Re: Help with tput on HP9000 running UNIX Message-ID: <23790001@hpkslx.mayfield.HP.COM> Date: 25 Jun 91 18:07:52 GMT References: <9756@cognos.UUCP> Organization: HP Response Center Lab Lines: 39 tput(1) on HP-UX doesn't seem to allow parameters other than termtype and capname. The only solution I could come up with was this short program which might solve your problem. Kevin Steves kevin@hpkslx.mayfield.hp.com Hewlett-Packard Response Center Lab ---------------------------------Cut Here------------------------------- #include #include #include /* * To compile: cc -o cup cup.c -lcurses */ char *tparm(); main(argc,argv) int argc; char **argv; { if (argc == 3) { int row,col; row = atoi(argv[1]); col = atoi(argv[2]); setupterm(0,1,0); putp(tparm(cursor_address,row,col)); resetterm(); exit(0); } else { fprintf(stderr,"Usage: cup row col\n"); exit(1); } }