home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (C) 1989 by David W. Trissel
- *
- * Not derived from licensed software.
- *
- * Permission is granted to freely use, copy, modify, and redistribute
- * this software, provided that no attempt is made to gain profit from it,
- * the author is not construed to be liable for any results of using the
- * software, alterations are clearly marked as such, and this notice is
- * not modified.
- *
- */
- /* All rights reserved. */
-
- /* layertitle - utility to specify window title */
-
- #include <stdio.h>
-
- #define ESC 0x1b
-
- /* main() - send string designating layers window title */
-
- main(ac, av)
- int ac; /* argument count */
- char **av; /* argument vector */
- {
- char *ap; /* argument scan pointer */
-
- if (--ac != 1)
- { printf("usage: layertitle \"new window title\"\n");
- exit(1);
- }
-
- ap = *++av; /* point to argument string */
-
- /* Transmit the title string in the ANSI Private Message format
- ** which is
- ** ESC '^' message ESC '\'
- */
- printf("%c%c%s%c%c", ESC, '^', ap, ESC, '\\');
-
- } /* main() */
-