Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!claris!apple!gert From: gert@Apple.COM (Gert Hulstein) Newsgroups: comp.unix.aux Subject: Changing name of term windows Keywords: source term name Message-ID: <16440@apple.Apple.COM> Date: 1 Sep 88 19:27:52 GMT Organization: Apple Computer Inc., Cupertino, CA Lines: 34 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 \n", *argv ); exit( 1 ); } printf( menuString, *(++argv) ); printf( windowString, *argv ); } /---- cut here ----/