Help with tput on HP9000 running UNIX

Help with tput on HP9000 running UNIX

Post by Maxwell Makl » Tue, 25 Jun 1991 22:14:48



Can someone give me an example of how one uses tput on a HP/UX.
It seems tput does not accept positional parameters on-line with the command,
unlike the Berkley System V version.  It must have its parameters pushed
onto the stack and popped off using tparam.  This has all confused me as I
have a csh script making extenisve use of the tput command running on Sun
platform and need to port it over to the the HP platform.  Just an example
would suffice.  For example, how would I specify the following

         tput cup 0 8
Thanks

Max

 
 
 

Help with tput on HP9000 running UNIX

Post by Kevin Stev » Thu, 27 Jun 1991 03:07:52


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

Hewlett-Packard
Response Center Lab

---------------------------------Cut Here-------------------------------
#include <stdlib.h>
#include <curses.h>
#include <term.h>

/*
 * 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);
        }

Quote:}


 
 
 

1. HELP! - HP9000 Unix locking terminals and printers

Sounds a bit weird to me. Can you get into admin mode on the DTC's and
check they haven't got any hung connections lying around?

We use(d) Lan Terminal Servers with telnet/reverse-telnet, and this does
sound like a "box in the middle" problem, but if it is genuinely a hub,
and not an LTS, then I didn't think they suffered from that sort of
thing...

2. How to do serial console?

3. How run NetBSD/hp300 1.0 on s400 HP9000 from DomainOS?

4. ld.so dynamic linking problem

5. Unix Programming Books - Curses/tgetstr/tputs/terminal text wrap?

6. logitech firstmouse+ wheel / scrolling problem.

7. <QUESTION> Linux running on an HP9000

8. Need some FreeBSD-on-CD

9. UNIX-like OS for HP9000-340?

10. US-NY-Albany - Sr. UNIX Systems Admin - 12 Mo. Contract - HP9000, HP-UX, EMC

11. OPRUIMING HP9000 UNIX APPARATUUR

12. Help with shell script; 'tput clear' won't work!?!