/*
* hptitle.c - program to produce window title changing sequence for hpterm.
*
* compile with:
*   cc -o hptitle hptitle.c
* then install in a directory that's listed in your path variable
*/

# include       <stdio.h>

main (argc, argv)
int     argc;
char    *argv[];
{
       if (argc >= 2)          /* do nothing unless there is an argument */
       {
               printf ("\033&f0k%dD%s", strlen (argv[1]), argv[1]);
               /* use this one to change the icon instead */
               /*printf ("\033&f-1k%dD%s", strlen (argv[1]), argv[1]);*/
       }
       exit (0);
}