xref: /original-bsd/lib/libplot/aed/linemod.c (revision c3e32dec)
1 /*-
2  * Copyright (c) 1983, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * %sccs.include.proprietary.c%
6  */
7 
8 #ifndef lint
9 static char sccsid[] = "@(#)linemod.c	8.1 (Berkeley) 06/04/93";
10 #endif /* not lint */
11 
12 #include "aed.h"
13 
14 /*---------------------------------------------------------
15  *	Linemod sets the current line drawing style.
16  *
17  *	Results:	None.
18  *
19  *	Side Effects:
20  *	The AED line style is set based on string s which
21  *	must be one of "dotted", "solid", "longdashed", "shortdashed",
22  *	or "dotdashed".  If s isn't recognized, then "solid" is used.
23  *---------------------------------------------------------
24  */
25 linemod(s)
26 char *s;
27 {
28     if (strcmp(s, "dotted") == 0)
29 	fputs("1AAFF", stdout);
30     else if (strcmp(s, "longdashed") == 0)
31 	fputs("1F055", stdout);
32     else if (strcmp(s, "shortdashed") == 0)
33 	fputs("1F0FF", stdout);
34     else if (strcmp(s, "dotdashed") == 0)
35 	fputs("1E4FF", stdout);
36     else fputs("1FFFF", stdout);
37     (void) fflush(stdout);
38 }
39