148502Sbostic /*-
2*61327Sbostic * Copyright (c) 1983, 1993
3*61327Sbostic * The Regents of the University of California. All rights reserved.
448502Sbostic *
548502Sbostic * %sccs.include.proprietary.c%
648502Sbostic */
748502Sbostic
815521Sralph #ifndef lint
9*61327Sbostic static char sccsid[] = "@(#)linemod.c 8.1 (Berkeley) 06/04/93";
1048502Sbostic #endif /* not lint */
1115521Sralph
1215521Sralph #include "aed.h"
1315521Sralph
1415521Sralph /*---------------------------------------------------------
1515521Sralph * Linemod sets the current line drawing style.
1615521Sralph *
1715521Sralph * Results: None.
1815521Sralph *
1915521Sralph * Side Effects:
2015521Sralph * The AED line style is set based on string s which
2115521Sralph * must be one of "dotted", "solid", "longdashed", "shortdashed",
2215521Sralph * or "dotdashed". If s isn't recognized, then "solid" is used.
2315521Sralph *---------------------------------------------------------
2415521Sralph */
linemod(s)2515521Sralph linemod(s)
2615521Sralph char *s;
2715521Sralph {
2815521Sralph if (strcmp(s, "dotted") == 0)
2915521Sralph fputs("1AAFF", stdout);
3015521Sralph else if (strcmp(s, "longdashed") == 0)
3115521Sralph fputs("1F055", stdout);
3215521Sralph else if (strcmp(s, "shortdashed") == 0)
3315521Sralph fputs("1F0FF", stdout);
3415521Sralph else if (strcmp(s, "dotdashed") == 0)
3515521Sralph fputs("1E4FF", stdout);
3615521Sralph else fputs("1FFFF", stdout);
3715521Sralph (void) fflush(stdout);
3815521Sralph }
39