gert@Apple.COM (Gert Hulstein) (09/02/88)
Here is a little piece of code that changes the name of a term
window, and it's entry in the window menu's.
Have fun with it.
:*) Gert Hulstein
gert@apple.com or gert@uvabick.uucp
Gert Hulstein
University of Amsterdam
/---- cut here ----/
/*
	name.c : a program to change the name of a 'term' window.
*/
#define	menuString	"\033]L%s\033\\"
#define	windowString	"\033]l%s\033\\"
main( argc, argv )
int	argc;
char	*argv[];
{	
if (argc != 2) {
	printf( "usage : %s <window-name>\n", *argv );
	exit( 1 );
	}
printf( menuString, *(++argv) );
printf( windowString, *argv );
}
/---- cut here ----/