BSD 4_2 release
[unix-history] / usr / src / usr.lib / libplot / t4014 / linemod.c
CommitLineData
22e4cf58 1#ifndef lint
0f4556f1 2static char sccsid[] = "@(#)linemod.c 4.1 (Berkeley) 6/27/83";
22e4cf58
SL
3#endif
4
5linemod(s)
6char *s;
7{
8 char c;
9 putch(033);
10 switch(s[0]){
11 case 'l':
12 c = 'd';
13 break;
14 case 'd':
15 if(s[3] != 'd')c='a';
16 else c='b';
17 break;
18 case 's':
19 if(s[5] != '\0')c='c';
20 else c='`';
21 }
22 putch(c);
23}