xref: /original-bsd/lib/libplot/t4014/linemod.c (revision b4971bb3)
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 linemod(s)
13 char *s;
14 {
15 	char c;
16 	putch(033);
17 	switch(s[0]){
18 	case 'l':
19 		c = 'd';
20 		break;
21 	case 'd':
22 		if(s[3] != 'd')c='a';
23 		else c='b';
24 		break;
25 	case 's':
26 		if(s[5] != '\0')c='c';
27 		else c='`';
28 	}
29 	putch(c);
30 }
31